Salome HOME
Issue #412: Crash on delete sketch line with constraints
[modules/shaper.git] / src / ModelAPI / ModelAPI_Validator.h
index 42662b10d4e6adfd7db9ccdae6992a6bee9427df..926ae886c1c9787b2374749efda0a127f091ecd0 100644 (file)
@@ -8,6 +8,7 @@
 #define ModelAPI_Validator_H_
 
 #include <ModelAPI.h>
+#include <ModelAPI_Feature.h>
 #include <memory>
 #include <list>
 
@@ -99,6 +100,9 @@ class MODELAPI_EXPORT ModelAPI_ValidatorsFactory
   virtual void registerCase(std::string theFeature, std::string theAttribute,
     std::string theSwitchId, std::string theCaseId) = 0;
 
+ /// Returns true if the attribute must be checked (the case is selected)
+  virtual bool isCase(FeaturePtr theFeature, std::string theAttribute) = 0;
+
  protected:
   /// Get instance from Session
   ModelAPI_ValidatorsFactory()