X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConfig%2FConfig_AttributeMessage.h;h=d2a8cf705b44f625ffc292317cfd5c130d0625de;hb=982481c856def9c064e5f2bb65de11a5b254da6e;hp=7b2bd12b6014c223bd1f7161fd5ca4b5986706d4;hpb=8e45fc95efaf00a22e223ecbba721e30b5a17f4b;p=modules%2Fshaper.git diff --git a/src/Config/Config_AttributeMessage.h b/src/Config/Config_AttributeMessage.h index 7b2bd12b6..d2a8cf705 100644 --- a/src/Config/Config_AttributeMessage.h +++ b/src/Config/Config_AttributeMessage.h @@ -8,6 +8,7 @@ #include #include +#include /*! * \class Config_AttributeMessage @@ -22,9 +23,10 @@ class Config_AttributeMessage : public Events_Message 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 - std::string myCaseId; ///< Attribute's case's id, if it placed inside a paged containers + ///< a list of pairs, if the attribute is placed inside paged containers: (case, switch) + std::list > myCases; - public: +public: /// Same event as Config_FeatureMessage::MODEL_EVENT() inline static const char* MODEL_EVENT() { @@ -46,8 +48,10 @@ class Config_AttributeMessage : public Events_Message CONFIG_EXPORT bool isObligatory() const; /// Returns true if attribute should conceal input features CONFIG_EXPORT bool isConcealment() const; - /// Returns id of a case which contain the attribute - CONFIG_EXPORT const std::string& caseId() 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); @@ -57,9 +61,6 @@ class Config_AttributeMessage : public Events_Message CONFIG_EXPORT void setConcealment(bool isConcealment); /// Set attribute's obligatory state CONFIG_EXPORT void setObligatory(bool isObligatory); - /// Set attribute's case - CONFIG_EXPORT void setCaseId(const std::string& id); - }; #endif // ATTRIBUTE_MESSAGE_H