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