Salome HOME
Add checking that object is used before the delete operation
[modules/shaper.git] / src / ModelAPI / ModelAPI_FeatureValidator.h
index 2023a66fc77a88ecd3a6166f17471d5e7209909e..3dafdf813bd47fabf465166060727511c27581b1 100644 (file)
@@ -8,15 +8,15 @@
 #include "ModelAPI.h"
 #include "ModelAPI_Validator.h"
 
-class MODELAPI_EXPORT ModelAPI_FeatureValidator: public ModelAPI_Validator
+class ModelAPI_FeatureValidator : public ModelAPI_Validator
 {
-public:
+ public:
   /// Returns true if feature and/or attributes are valid
   /// \param theFeature the validated feature
   /// \param theAttr the validated attribute ID, empty string of feature is validated
   /// \param theArguments list of string, feature attribute names: dependent attributes
-  virtual bool validate(const boost::shared_ptr<ModelAPI_Feature>& theFeature,
-    const std::string theAttr, std::list<std::string> theArguments) const = 0;
+  virtual bool isValid(const boost::shared_ptr<ModelAPI_Feature>& theFeature,
+    const std::list<std::string>& theArguments) const = 0;
 };
 
 #endif