X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_AttributeMessage.h;h=bfb9b64b1b5c1deb55c6986c7184c8ca78ffaa9e;hb=5090ea57c88f874ec211b5addb28e413db5eb68e;hp=f8ac8e3d5d325b83e347051f4cf1adda163e1034;hpb=55106ca3aef765fc36d57720060c185d745f25db;p=modules%2Fshaper.git diff --git a/src/Config/Config_AttributeMessage.h b/src/Config/Config_AttributeMessage.h index f8ac8e3d5..bfb9b64b1 100644 --- a/src/Config/Config_AttributeMessage.h +++ b/src/Config/Config_AttributeMessage.h @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + #ifndef ATTRIBUTE_MESSAGE_H #define ATTRIBUTE_MESSAGE_H @@ -7,37 +9,50 @@ #include -/* - * Class to pass an attribute's (widget's) entry info extracted from xml file. +/*! + * \class Config_AttributeMessage + * \brief Class to pass an attribute's (widget's) entry info extracted from xml file. + * \code * + * \endcode */ class Config_AttributeMessage : public Events_Message { - std::string myAttributeId; //Feature unique id - std::string myFeatureId; //Feature unique id - bool myIsObligatory; - bool myIsConcealment; + std::string myAttributeId; ///< Attribute's unique id + std::string myFeatureId; ///< Attribute's feature's unique id + bool myIsObligatory; ///< Required to be set by user, else it's feature is invalid. + bool myIsConcealment; ///< If true, conceals features used as input public: - // Same event as Config_FeatureMessage::MODEL_EVENT() + /// Same event as Config_FeatureMessage::MODEL_EVENT() inline static const char* MODEL_EVENT() { return Config_FeatureMessage::MODEL_EVENT(); } - //const Events_ID theID, const void* theSender = 0 + /// Constructor CONFIG_EXPORT Config_AttributeMessage(const Events_ID theId, const void* theParent = 0); + /// Destructor CONFIG_EXPORT virtual ~Config_AttributeMessage(); //Auto-generated getters/setters + /// Returns attribute's unique id CONFIG_EXPORT const std::string& attributeId() const; + /// Returns attribute's feature's unique id CONFIG_EXPORT const std::string& featureId() const; + /// Returns true if attribute is obligatory: + /// Required to be set by user, else it's feature is invalid. CONFIG_EXPORT bool isObligatory() const; + /// Returns true if attribute should conceal input features CONFIG_EXPORT bool isConcealment() const; + /// Set attribute's unique id CONFIG_EXPORT void setAttributeId(const std::string& theId); + /// Set attribute's feature's unique id CONFIG_EXPORT void setFeatureId(const std::string& id); + /// Returns attribute's concealment state CONFIG_EXPORT void setConcealment(bool isConcealment); + /// Returns attribute's obligatory state CONFIG_EXPORT void setObligatory(bool isObligatory); };