Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom into Dev_1.1.0
[modules/shaper.git] / src / Config / Config_AttributeMessage.h
index 7b2bd12b6014c223bd1f7161fd5ca4b5986706d4..e9ab250ea633cbeddab9e34fc07f74f3bac6da1a 100644 (file)
@@ -23,6 +23,7 @@ class Config_AttributeMessage : public Events_Message
   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
+  std::string mySwitchId; ///< Attribute's switch id, if it placed inside a paged containers
 
  public:
   /// Same event as Config_FeatureMessage::MODEL_EVENT()
@@ -48,6 +49,8 @@ class Config_AttributeMessage : public Events_Message
   CONFIG_EXPORT bool isConcealment() const;
   /// Returns id of a case which contain the attribute
   CONFIG_EXPORT const std::string& caseId() const;
+  /// Returns id of a switch which contain the attribute
+  CONFIG_EXPORT const std::string& switchId() const;
 
   /// Set attribute's unique id
   CONFIG_EXPORT void setAttributeId(const std::string& theId);
@@ -59,7 +62,8 @@ class Config_AttributeMessage : public Events_Message
   CONFIG_EXPORT void setObligatory(bool isObligatory);
   /// Set attribute's case
   CONFIG_EXPORT void setCaseId(const std::string& id);
-
+  /// Set attribute's switch
+  CONFIG_EXPORT void setSwitchId(const std::string& id);
 };
 
 #endif // ATTRIBUTE_MESSAGE_H