Salome HOME
Add dumping named of copied entities in the sketch (issue #1924)
[modules/shaper.git] / src / Config / Config_AttributeMessage.cpp
index f0a638a107939b90f18c93f1b90c3412b1c8e03c..e1df96c3d7324451b2cbec4fc48c86edd46e04ec 100644 (file)
@@ -1,13 +1,12 @@
-/*
- *
- */
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 #include "Config_AttributeMessage.h"
 
 Config_AttributeMessage::Config_AttributeMessage(const Events_ID theId, const void* theParent)
     : Events_Message(theId, theParent)
 {
-  myAttributeId = ""; // Attribute unique id
-  myFeatureId = ""; // Feature unique id
+  myAttributeId = std::string(); // Attribute unique id
+  myFeatureId = std::string(); // Feature unique id
   myIsObligatory = true;
   myIsConcealment = false;
 }
@@ -56,3 +55,14 @@ void Config_AttributeMessage::setObligatory(bool theObligatory)
 {
   this->myIsObligatory = theObligatory;
 }
+
+const std::list<std::pair<std::string, std::string> >& Config_AttributeMessage::getCases() const
+{
+  return myCases;
+}
+
+void Config_AttributeMessage::setCases(const std::list<std::pair<std::string,
+                                       std::string> >& theCases)
+{
+  myCases = theCases;
+}