X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModelAPI%2FModelAPI_Validator.h;h=926ae886c1c9787b2374749efda0a127f091ecd0;hb=f3f60a3cb69f2534a5837cd249782395e5edb183;hp=42662b10d4e6adfd7db9ccdae6992a6bee9427df;hpb=83e925a876b26a470e513b0a229258b145c82bc8;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Validator.h b/src/ModelAPI/ModelAPI_Validator.h index 42662b10d..926ae886c 100644 --- a/src/ModelAPI/ModelAPI_Validator.h +++ b/src/ModelAPI/ModelAPI_Validator.h @@ -8,6 +8,7 @@ #define ModelAPI_Validator_H_ #include +#include #include #include @@ -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()