Salome HOME
Fix for #767: correct the internal history structure for nested features
[modules/shaper.git] / src / ModelAPI / ModelAPI_AttributeValidator.h
index 63a1b9e6fb8e8e103e5a73b3a50b220f086acf08..1cf46a54cde7b10ccb2e8feb1586ee165d223138 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        ModelAPI_AttributeValidator.h
 // Created:     4 Sep 2014
 // Author:      Mikhail PONIKAROV
@@ -5,6 +7,7 @@
 #ifndef ModelAPI_AttributeValidator_H
 #define ModelAPI_AttributeValidator_H
 
+#include <ModelAPI.h>
 #include <ModelAPI_Attribute.h>
 #include <ModelAPI_Validator.h>
 
@@ -17,8 +20,11 @@ public:
   //! returns true if attribute is valid
   //! \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;
+  virtual bool isValid(const AttributePtr& theAttribute,
+                       const std::list<std::string>& theArguments,
+                       std::string& theError) const = 0;
+
+  MODELAPI_EXPORT ~ModelAPI_AttributeValidator();
 };
 
 #endif