20 #ifndef GeomValidators_Different_H
21 #define GeomValidators_Different_H
23 #include <GeomValidators.h>
24 #include <ModelAPI_Feature.h>
25 #include <ModelAPI_FeatureValidator.h>
40 GEOMVALIDATORS_EXPORT
virtual bool isValid(
const std::shared_ptr<ModelAPI_Feature>& theFeature,
41 const std::list<std::string>& theArguments,
44 GEOMVALIDATORS_EXPORT
virtual
An event message for sending a string message which has to be translated.
Definition: Events_InfoMessage.h:35
Validates that attributes are not the same.
Definition: GeomValidators_Different.h:32
virtual GEOMVALIDATORS_EXPORT bool isNotObligatory(std::string theFeature, std::string theAttribute)
Returns true if the attribute in feature is not obligatory for the feature execution.
Definition: GeomValidators_Different.cpp:112
virtual GEOMVALIDATORS_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: GeomValidators_Different.cpp:71
The geneneric validator for the whole feature.
Definition: ModelAPI_FeatureValidator.h:35