X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_ValidatorMessage.h;h=99650e22efeaaec2e5990f0a0a3bec0e647644e5;hb=7b13546ebd4d7a935189869b0a0c7b72a6f84479;hp=d137097f9e25ae2a20f1384a23d65a59db8d0a3d;hpb=8b78f08d1e6b2e6d57aa73b091579094e4a020d4;p=modules%2Fshaper.git diff --git a/src/Config/Config_ValidatorMessage.h b/src/Config/Config_ValidatorMessage.h index d137097f9..99650e22e 100644 --- a/src/Config/Config_ValidatorMessage.h +++ b/src/Config/Config_ValidatorMessage.h @@ -21,6 +21,7 @@ static const char * EVENT_VALIDATOR_LOADED = "ValidatorLoaded"; /*! * \class Config_ValidatorMessage + * \ingroup Config * \brief Transmits info about created validator on "ValidatorLoaded" event */ class Config_ValidatorMessage : public Events_Message @@ -31,20 +32,32 @@ class Config_ValidatorMessage : public Events_Message std::list myVaidatorParameters; public: + /*! + * Constructor. + * \param theId - Events_ID of the message + * \param theParent - pointer to the sender + */ CONFIG_EXPORT Config_ValidatorMessage(const Events_ID theId, const void* theParent = 0); CONFIG_EXPORT virtual ~Config_ValidatorMessage(); - //CONFIG_EXPORT static const char* UID() const; - + //! Get id of the filter CONFIG_EXPORT const std::string& validatorId() const; + //! Get id of a feature to which the filter belongs to CONFIG_EXPORT const std::string& featureId() const; + //! Get id of an attribute to which the filter belongs to CONFIG_EXPORT const std::string& attributeId() const; + //! Get filter parameters CONFIG_EXPORT const std::list& parameters() const; + //! Returns true if validator id is not empty CONFIG_EXPORT bool isValid() const; + //! Set id of the filter CONFIG_EXPORT void setValidatorId(const std::string& theId); + //! Set id of a feature to which the filter belongs to CONFIG_EXPORT void setFeatureId(const std::string& theId); + //! Set id of an attribute to which the filter belongs to CONFIG_EXPORT void setAttributeId(const std::string& theId); + //! Get filter parameters CONFIG_EXPORT void setValidatorParameters(const std::list& parameters); };