Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom.git into Dev_1.1.0
[modules/shaper.git] / src / Config / Config_AttributeMessage.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 #include "Config_AttributeMessage.h"
4
5 Config_AttributeMessage::Config_AttributeMessage(const Events_ID theId, const void* theParent)
6     : Events_Message(theId, theParent)
7 {
8   myAttributeId = std::string(); // Attribute unique id
9   myFeatureId = std::string(); // Feature unique id
10   myIsObligatory = true;
11   myIsConcealment = false;
12   myCaseId = std::string();
13 }
14
15 Config_AttributeMessage::~Config_AttributeMessage()
16 {
17
18 }
19
20 const std::string& Config_AttributeMessage::featureId() const
21 {
22   return myFeatureId;
23 }
24
25 void Config_AttributeMessage::setFeatureId(const std::string& theId)
26 {
27   myFeatureId = theId;
28 }
29
30 const std::string& Config_AttributeMessage::attributeId() const
31 {
32   return myAttributeId;
33 }
34
35 void Config_AttributeMessage::setAttributeId(const std::string& theId)
36 {
37   myAttributeId = theId;
38 }
39
40 bool Config_AttributeMessage::isConcealment() const
41 {
42   return myIsConcealment;
43 }
44
45 void Config_AttributeMessage::setConcealment(bool theConcealment)
46 {
47   this->myIsConcealment = theConcealment;
48 }
49
50 bool Config_AttributeMessage::isObligatory() const
51 {
52   return myIsObligatory;
53 }
54
55 void Config_AttributeMessage::setObligatory(bool theObligatory)
56 {
57   this->myIsObligatory = theObligatory;
58 }
59
60 const std::string& Config_AttributeMessage::caseId() const
61 {
62   return myCaseId;
63 }
64
65 void Config_AttributeMessage::setCaseId(const std::string& theId)
66 {
67   this->myCaseId = theId;
68 }