Salome HOME
16ec279222b136d3d9c06fbe46ee7132e36b0c51
[modules/shaper.git] / src / Config / Config_ValidatorMessage.h
1 /*
2  * Config_ValidatorMessage.h
3  *
4  *  Created on: 08 Jul 2014 ã.
5  *      Author: sbh
6  */
7
8 #ifndef CONFIG_VALIDATORMESSAGE_H_
9 #define CONFIG_VALIDATORMESSAGE_H_
10
11 #include <Events_Message.h>
12 #include <Config_def.h>
13
14 #include <list>
15 #include <string>
16
17 /// Event ID that feature is loaded (comes with Config_FeatureMessage)
18 static const char * EVENT_VALIDATOR_LOADED = "ValidatorLoaded";
19
20 class Config_ValidatorMessage : public Events_Message
21 {
22   std::string myValidatorId;
23   std::string myFeatureId;
24   std::string myAttributeId;
25   std::list<std::string> myVaidatorParameters;
26
27  public:
28   CONFIG_EXPORT Config_ValidatorMessage(const Events_ID theId, const void* theParent = 0);
29   CONFIG_EXPORT virtual ~Config_ValidatorMessage();
30
31   //CONFIG_EXPORT static const char* UID() const;
32
33   CONFIG_EXPORT const std::string& validatorId() const;
34   CONFIG_EXPORT const std::string& featureId() const;
35   CONFIG_EXPORT const std::string& attributeId() const;
36   CONFIG_EXPORT const std::list<std::string>& parameters() const;
37   CONFIG_EXPORT bool isValid() const;
38
39   CONFIG_EXPORT void setValidatorId(const std::string& theId);
40   CONFIG_EXPORT void setFeatureId(const std::string& theId);
41   CONFIG_EXPORT void setAttributeId(const std::string& theId);
42   CONFIG_EXPORT void setValidatorParameters(const std::list<std::string>& parameters);
43 };
44
45 #endif /* Config_ValidatorMessage_H_ */