X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Validator.h;h=0040d8c2b2c2c0c11e363549fc804c100d6be135;hb=4fc2dc9fdc0c14fab5f2780598eccdc1368d81b9;hp=87552dd42919aa6480fd919d2a17acc98c767d0a;hpb=1b585947597658057eedf6223a230011e20a959d;p=modules%2Fshaper.git diff --git a/src/Model/Model_Validator.h b/src/Model/Model_Validator.h index 87552dd42..0040d8c2b 100644 --- a/src/Model/Model_Validator.h +++ b/src/Model/Model_Validator.h @@ -39,8 +39,9 @@ class Model_ValidatorsFactory : public ModelAPI_ValidatorsFactory std::map > myConcealed; /// Stores the registered attributes must be checked only if the particular case is activated /// Map from feature kind to map of attribute IDs to pair - // (switchId (ID of the attribute) and case Id (possible values of the switch attribute)) - std::map > > myCases; + // (switchId (ID of the attribute) and case Ids (possible values of the switch attribute)) + std::map > > > myCases; public: /// Registers the instance of the validator by the ID @@ -104,6 +105,8 @@ class Model_ValidatorsFactory : public ModelAPI_ValidatorsFactory protected: /// Adds the defualt validators that are usefull for all features. void addDefaultValidators(Validators& theValidators) const; + /// Adds the defualt validators that are usefull for all attributes. + void addDefaultAttributeValidators(Validators& theValidators) const; /// Get instance from Session Model_ValidatorsFactory();