X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_FeatureValidator.h;h=f051c1e0d4a27e23bf64baea4e3cf12f755a7b19;hb=506a83727ca8f8297fc1dcdf4ea40d7865c35450;hp=59161acbef6b9fdd8b7a208a6f831b25f875979f;hpb=5c861257d29de904a1418488b65e6100cd078433;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_FeatureValidator.h b/src/ModelAPI/ModelAPI_FeatureValidator.h index 59161acbe..f051c1e0d 100644 --- a/src/ModelAPI/ModelAPI_FeatureValidator.h +++ b/src/ModelAPI/ModelAPI_FeatureValidator.h @@ -18,14 +18,21 @@ * used: it checks each argument of the feature and if one of it is not valid (and obligatory), * the hole feature is invalid. */ -class ModelAPI_FeatureValidator : public ModelAPI_Validator +class MODELAPI_EXPORT ModelAPI_FeatureValidator : public ModelAPI_Validator { public: + /// Default constructor + ModelAPI_FeatureValidator(); + /// Virtual destructor + virtual ~ModelAPI_FeatureValidator(); + /// Returns true if feature and/or attributes are valid /// \param theFeature the validated feature /// \param theArguments list of string, feature attribute names: dependent attributes + /// \param theError the error string message if validation fails virtual bool isValid(const std::shared_ptr& theFeature, - const std::list& theArguments) const = 0; + const std::list& theArguments, + std::string& theError) const = 0; /// Returns true if the attribute in feature is not obligatory for the feature execution virtual bool isNotObligatory(std::string theFeature, std::string theAttribute) = 0;