20 #ifndef Model_FeatureValidator_H
21 #define Model_FeatureValidator_H
24 #include <ModelAPI_Feature.h>
25 #include <ModelAPI_FeatureValidator.h>
42 std::map<std::string, std::set<std::string> > myNotObligatory;
49 MODEL_EXPORT
virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
50 const std::list<std::string>& theArguments,
57 virtual bool isNotObligatory(std::string theFeature, std::string theAttribute);
An event message for sending a string message which has to be translated.
Definition: Events_InfoMessage.h:35
The geneneric validator for the whole feature.
Definition: ModelAPI_FeatureValidator.h:35
The geneneric validator for the whole feature.
Definition: Model_FeatureValidator.h:40
virtual void registerNotObligatory(std::string theFeature, std::string theAttribute)
sets not obligatory attributes, not checked for initialization
Definition: Model_FeatureValidator.cpp:75
virtual bool isNotObligatory(std::string theFeature, std::string theAttribute)
Returns true if the attribute in feature is not obligatory for the feature execution.
Definition: Model_FeatureValidator.cpp:81
virtual MODEL_EXPORT bool isValid(const std::shared_ptr< ModelAPI_Feature > &theFeature, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Returns true if feature and/or attributes are valid.
Definition: Model_FeatureValidator.cpp:35