20 #ifndef PARAMETERSPLUGIN_VARIABLEVALIDATOR_H_
21 #define PARAMETERSPLUGIN_VARIABLEVALIDATOR_H_
23 #include <ParametersPlugin.h>
24 #include <ParametersPlugin_Validators.h>
26 #include <ModelAPI_AttributeValidator.h>
47 PARAMETERSPLUGIN_EXPORT
virtual bool isValid(
const AttributePtr& theAttribute,
48 const std::list<std::string>& theArguments,
53 PARAMETERSPLUGIN_EXPORT
bool isUnique(
const AttributePtr& theAttribute,
54 const std::string& theString)
const;
74 PARAMETERSPLUGIN_EXPORT
virtual bool isValid(
const AttributePtr& theAttribute,
75 const std::list<std::string>& theArguments,
An event message for sending a string message which has to be translated.
Definition: Events_InfoMessage.h:35
Generic validator for any attribute of a feature.
Definition: ModelAPI_AttributeValidator.h:31
Validator for the expression of parameter.
Definition: ParametersPlugin_Validators.h:63
virtual PARAMETERSPLUGIN_EXPORT bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Returns true if attribute has a valid parameter expression.
Definition: ParametersPlugin_Validators.cpp:99
Validator for the variable name of parameter.
Definition: ParametersPlugin_Validators.h:36
PARAMETERSPLUGIN_EXPORT bool isUnique(const AttributePtr &theAttribute, const std::string &theString) const
Returns true if theString is unique parameter name in the document of theAttribute.
Definition: ParametersPlugin_Validators.cpp:69
virtual PARAMETERSPLUGIN_EXPORT bool isValid(const AttributePtr &theAttribute, const std::list< std::string > &theArguments, Events_InfoMessage &theError) const
Returns true if attribute has a valid parameter name.
Definition: ParametersPlugin_Validators.cpp:42