X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_AttributeMessage.h;h=d2a8cf705b44f625ffc292317cfd5c130d0625de;hb=2c9e900f14038dee0ee15778a8f86de3d43cf308;hp=160efa7e85f84f88e27d28b2637e0762327a2c0d;hpb=4bf5c624e120ef5b7fca9625f8fdc23fbdfefc25;p=modules%2Fshaper.git diff --git a/src/Config/Config_AttributeMessage.h b/src/Config/Config_AttributeMessage.h index 160efa7e8..d2a8cf705 100644 --- a/src/Config/Config_AttributeMessage.h +++ b/src/Config/Config_AttributeMessage.h @@ -8,39 +8,58 @@ #include #include +#include /*! * \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 + ///< a list of pairs, if the attribute is placed inside paged containers: (case, switch) + std::list > myCases; - public: - // Same event as Config_FeatureMessage::MODEL_EVENT() +public: + /// 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; + /// Returns container of ids of pair of a case and switches + CONFIG_EXPORT const std::list >& getCases() const; + /// Sets ids of pair of a case and switches + CONFIG_EXPORT void setCases(const std::list >& theCases); + /// 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); + /// Set attribute's concealment state CONFIG_EXPORT void setConcealment(bool isConcealment); + /// Set attribute's obligatory state CONFIG_EXPORT void setObligatory(bool isObligatory); };