Salome HOME
Fix for #767: correct the internal history structure for nested features
[modules/shaper.git] / src / ModelAPI / ModelAPI_AttributeValidator.h
index 1abe1541af1335a027e8276548f00188b86e312c..1cf46a54cde7b10ccb2e8feb1586ee165d223138 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef ModelAPI_AttributeValidator_H
 #define ModelAPI_AttributeValidator_H
 
+#include <ModelAPI.h>
 #include <ModelAPI_Attribute.h>
 #include <ModelAPI_Validator.h>
 
@@ -20,9 +21,10 @@ public:
   //! \param theAttribute the checked attribute
   //! \param theArguments arguments of the attribute
   virtual bool isValid(const AttributePtr& theAttribute,
-                       const std::list<std::string>& theArguments) const = 0;
+                       const std::list<std::string>& theArguments,
+                       std::string& theError) const = 0;
 
-  ~ModelAPI_AttributeValidator();
+  MODELAPI_EXPORT ~ModelAPI_AttributeValidator();
 };
 
 #endif