2 * Parameters_VariableValidator.h
4 * Created on: Apr 9, 2015
8 #ifndef PARAMETERSPLUGIN_VARIABLEVALIDATOR_H_
9 #define PARAMETERSPLUGIN_VARIABLEVALIDATOR_H_
11 #include <ParametersPlugin.h>
12 #include <ParametersPlugin_Validators.h>
14 #include <ModelAPI_AttributeValidator.h>
18 class ParametersPlugin_VariableValidator : public ModelAPI_AttributeValidator
21 PARAMETERSPLUGIN_EXPORT ParametersPlugin_VariableValidator();
22 PARAMETERSPLUGIN_EXPORT virtual ~ParametersPlugin_VariableValidator();
24 //! returns true if attribute is valid
25 //! \param theAttribute the checked attribute
26 //! \param theArguments arguments of the attribute
27 PARAMETERSPLUGIN_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
28 const std::list<std::string>& theArguments) const;
31 PARAMETERSPLUGIN_EXPORT bool isVariable(const std::string& theString) const;
32 PARAMETERSPLUGIN_EXPORT bool isUnique(const AttributePtr& theAttribute,
33 const std::string& theString) const;
36 class ParametersPlugin_ExpressionValidator: public ModelAPI_AttributeValidator
39 PARAMETERSPLUGIN_EXPORT ParametersPlugin_ExpressionValidator();
40 PARAMETERSPLUGIN_EXPORT virtual ~ParametersPlugin_ExpressionValidator();
42 //! returns true if attribute is valid
43 //! \param theAttribute the checked attribute
44 //! \param theArguments arguments of the attribute
45 PARAMETERSPLUGIN_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
46 const std::list<std::string>& theArguments) const;
50 #endif /* PARAMETERSPLUGIN_VARIABLEVALIDATOR_H_ */