Salome HOME
Add checking that object is used before the delete operation
[modules/shaper.git] / src / ModelAPI / ModelAPI_FeatureValidator.h
index d2378a0dea994f19820a40caa7be441f374aebc3..3dafdf813bd47fabf465166060727511c27581b1 100644 (file)
@@ -8,14 +8,15 @@
 #include "ModelAPI.h"
 #include "ModelAPI_Validator.h"
 
-class 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 isValid(const boost::shared_ptr<ModelAPI_Feature>& theFeature) const = 0;
+  virtual bool isValid(const boost::shared_ptr<ModelAPI_Feature>& theFeature,
+    const std::list<std::string>& theArguments) const = 0;
 };
 
 #endif