Salome HOME
Merge branch 'Dev_0.6.1' of newgeom:newgeom into Dev_0.6.1
[modules/shaper.git] / src / Config / Config_ValidatorMessage.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 /*
4  * Config_ValidatorMessage.cpp
5  *
6  *  Created on: 08 Jul 2014 �.
7  *      Author: sbh
8  */
9
10 #include <Config_ValidatorMessage.h>
11
12 Config_ValidatorMessage::Config_ValidatorMessage(const Events_ID theId, const void* theParent)
13     : Events_Message(theId, theParent)
14 {
15   myValidatorId = "";
16   myFeatureId = "";
17   myAttributeId = "";
18 }
19
20 Config_ValidatorMessage::~Config_ValidatorMessage()
21 {
22 }
23
24 const std::string& Config_ValidatorMessage::validatorId() const
25 {
26   return myValidatorId;
27 }
28
29 const std::string& Config_ValidatorMessage::featureId() const
30 {
31   return myFeatureId;
32 }
33
34 const std::string& Config_ValidatorMessage::attributeId() const
35 {
36   return myAttributeId;
37 }
38
39 const std::list<std::string>& Config_ValidatorMessage::parameters() const
40 {
41   return myVaidatorParameters;
42 }
43
44 bool Config_ValidatorMessage::isValid() const
45 {
46   return !myValidatorId.empty();
47 }
48
49 void Config_ValidatorMessage::setValidatorId(const std::string& validatorId)
50 {
51   myValidatorId = validatorId;
52 }
53
54 void Config_ValidatorMessage::setValidatorParameters(const std::list<std::string>& parameters)
55 {
56   myVaidatorParameters = parameters;
57 }
58
59 void Config_ValidatorMessage::setFeatureId(const std::string& theId)
60 {
61   myFeatureId = theId;
62 }
63
64 void Config_ValidatorMessage::setAttributeId(const std::string& theId)
65 {
66   myAttributeId = theId;
67 }