X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParametersPlugin%2FParametersPlugin_Validators.h;h=50b0e937d1afacd8fea0e1142563a6dce5eab436;hb=c1d1f617a04aacf5f0d6246c1b8dea72dd2d6093;hp=a0551de61f8301321dbc62f086ee349eceaea5b4;hpb=7807756f46b9dcd90994ac57a8a514f0570e794e;p=modules%2Fshaper.git diff --git a/src/ParametersPlugin/ParametersPlugin_Validators.h b/src/ParametersPlugin/ParametersPlugin_Validators.h index a0551de61..50b0e937d 100644 --- a/src/ParametersPlugin/ParametersPlugin_Validators.h +++ b/src/ParametersPlugin/ParametersPlugin_Validators.h @@ -26,18 +26,18 @@ class ParametersPlugin_VariableValidator : public ModelAPI_AttributeValidator PARAMETERSPLUGIN_EXPORT ParametersPlugin_VariableValidator(); PARAMETERSPLUGIN_EXPORT virtual ~ParametersPlugin_VariableValidator(); - //! returns true if attribute is valid - //! \param theAttribute the checked attribute - //! \param theArguments arguments of the attribute - //! \param theError the error string message if validation fails + /** + * \brief Returns true if attribute has a valid parameter name. + * \param theAttribute the checked attribute + * \param theArguments arguments of the attribute + * \param theError the error string message if validation fails + */ PARAMETERSPLUGIN_EXPORT virtual bool isValid(const AttributePtr& theAttribute, const std::list& theArguments, - std::string& theError) const; + Events_InfoMessage& theError) const; protected: - /// Returns true if theString is a variable name. - PARAMETERSPLUGIN_EXPORT bool isVariable(const std::string& theString) const; - /// Returns true if theString is unique parameter name for theAttribute context. + /// Returns true if theString is unique parameter name in the document of theAttribute. PARAMETERSPLUGIN_EXPORT bool isUnique(const AttributePtr& theAttribute, const std::string& theString) const; }; @@ -53,13 +53,15 @@ class ParametersPlugin_ExpressionValidator: public ModelAPI_AttributeValidator PARAMETERSPLUGIN_EXPORT ParametersPlugin_ExpressionValidator(); PARAMETERSPLUGIN_EXPORT virtual ~ParametersPlugin_ExpressionValidator(); - //! returns true if attribute is valid - //! \param theAttribute the checked attribute - //! \param theArguments arguments of the attribute - //! \param theError the error string message if validation fails + /** + * \brief Returns true if attribute has a valid parameter expression. + * \param theAttribute the checked attribute + * \param theArguments arguments of the attribute + * \param theError the error string message if validation fails + */ PARAMETERSPLUGIN_EXPORT virtual bool isValid(const AttributePtr& theAttribute, const std::list& theArguments, - std::string& theError) const; + Events_InfoMessage& theError) const; };