|
SHAPER
9.15.0
|
The geneneric validator for the whole feature. More...

Public Member Functions | |
| 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. More... | |
| virtual void | registerNotObligatory (std::string theFeature, std::string theAttribute) |
| sets not obligatory attributes, not checked for initialization More... | |
| virtual bool | isNotObligatory (std::string theFeature, std::string theAttribute) |
| Returns true if the attribute in feature is not obligatory for the feature execution. More... | |
The geneneric validator for the whole feature.
Can be redefined for some specific feature, but by default for each feature this validator is used: it checks each argument of the feature and if one of it is not valid (and obligatory), the hole feature is invalid.
|
virtual |
Returns true if feature and/or attributes are valid.
| theFeature | the validated feature |
| theArguments | the arguments in the configuration file for this validator |
| theError | error message produced by validator to the user if it fails |
Implements ModelAPI_FeatureValidator.
|
virtual |
sets not obligatory attributes, not checked for initialization
|
virtual |
Returns true if the attribute in feature is not obligatory for the feature execution.
Reimplemented from ModelAPI_FeatureValidator.