Salome HOME
Issue #2120: Crash when creating an arc passing through the arc connected to both...
[modules/shaper.git] / src / Config / Config_AttributeMessage.cpp
index 973dd3930e2fb272d2157cad99cfc1882c0d7ce3..e1df96c3d7324451b2cbec4fc48c86edd46e04ec 100644 (file)
@@ -9,7 +9,6 @@ Config_AttributeMessage::Config_AttributeMessage(const Events_ID theId, const vo
   myFeatureId = std::string(); // Feature unique id
   myIsObligatory = true;
   myIsConcealment = false;
-  myCaseId = std::string();
 }
 
 Config_AttributeMessage::~Config_AttributeMessage()
@@ -57,22 +56,13 @@ void Config_AttributeMessage::setObligatory(bool theObligatory)
   this->myIsObligatory = theObligatory;
 }
 
-const std::string& Config_AttributeMessage::caseId() const
+const std::list<std::pair<std::string, std::string> >& Config_AttributeMessage::getCases() const
 {
-  return myCaseId;
+  return myCases;
 }
 
-const std::string& Config_AttributeMessage::switchId() const
+void Config_AttributeMessage::setCases(const std::list<std::pair<std::string,
+                                       std::string> >& theCases)
 {
-  return mySwitchId;
-}
-
-void Config_AttributeMessage::setCaseId(const std::string& theId)
-{
-  this->myCaseId = theId;
-}
-
-void Config_AttributeMessage::setSwitchId(const std::string& theId)
-{
-  this->mySwitchId = theId;
+  myCases = theCases;
 }