Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / Config / Config_AttributeMessage.cpp
1 /*
2  *
3  */
4 #include "Config_AttributeMessage.h"
5
6 Config_AttributeMessage::Config_AttributeMessage(const Events_ID theId, const void* theParent)
7     : Events_Message(theId, theParent)
8 {
9   myAttributeId = ""; // Attribute unique id
10   myFeatureId = ""; // Feature unique id
11   myIsObligatory = true;
12   myIsConcealment = false;
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 }