Salome HOME
Merge branch 'Dev_0.7.1' of newgeom:newgeom into Dev_0.7.1
[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 = ""; // Attribute unique id
9   myFeatureId = ""; // Feature unique id
10   myIsObligatory = true;
11   myIsConcealment = false;
12 }
13
14 Config_AttributeMessage::~Config_AttributeMessage()
15 {
16
17 }
18
19 const std::string& Config_AttributeMessage::featureId() const
20 {
21   return myFeatureId;
22 }
23
24 void Config_AttributeMessage::setFeatureId(const std::string& theId)
25 {
26   myFeatureId = theId;
27 }
28
29 const std::string& Config_AttributeMessage::attributeId() const
30 {
31   return myAttributeId;
32 }
33
34 void Config_AttributeMessage::setAttributeId(const std::string& theId)
35 {
36   myAttributeId = theId;
37 }
38
39 bool Config_AttributeMessage::isConcealment() const
40 {
41   return myIsConcealment;
42 }
43
44 void Config_AttributeMessage::setConcealment(bool theConcealment)
45 {
46   this->myIsConcealment = theConcealment;
47 }
48
49 bool Config_AttributeMessage::isObligatory() const
50 {
51   return myIsObligatory;
52 }
53
54 void Config_AttributeMessage::setObligatory(bool theObligatory)
55 {
56   this->myIsObligatory = theObligatory;
57 }