X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_AttributeValidator.h;h=142c91c233689bb32a729ca6e232263c3b8b2a9f;hb=c66d90377083e2611816b72500533d4ffbc73e19;hp=1abe1541af1335a027e8276548f00188b86e312c;hpb=c64cd8291535beb1c05723e7854103f64dcfc1d9;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_AttributeValidator.h b/src/ModelAPI/ModelAPI_AttributeValidator.h index 1abe1541a..142c91c23 100644 --- a/src/ModelAPI/ModelAPI_AttributeValidator.h +++ b/src/ModelAPI/ModelAPI_AttributeValidator.h @@ -7,6 +7,7 @@ #ifndef ModelAPI_AttributeValidator_H #define ModelAPI_AttributeValidator_H +#include #include #include @@ -16,13 +17,15 @@ class ModelAPI_AttributeValidator : public ModelAPI_Validator { public: - //! returns true if attribute is valid + //! \returns true if attribute is valid //! \param theAttribute the checked attribute //! \param theArguments arguments of the attribute + //! \param theError the error string message if validation fails virtual bool isValid(const AttributePtr& theAttribute, - const std::list& theArguments) const = 0; + const std::list& theArguments, + std::string& theError) const = 0; - ~ModelAPI_AttributeValidator(); + MODELAPI_EXPORT ~ModelAPI_AttributeValidator(); }; #endif