Salome HOME
Sources formated according to the codeing standards
[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);CONFIG_EXPORT virtual ~Config_ValidatorMessage();
29
30   //CONFIG_EXPORT static const char* UID() const;
31
32   CONFIG_EXPORT const std::string& validatorId() const;CONFIG_EXPORT const std::string& featureId() const;CONFIG_EXPORT const std::string& attributeId() const;CONFIG_EXPORT const std::list<
33       std::string>& parameters() const;CONFIG_EXPORT bool isValid() const;
34
35   CONFIG_EXPORT void setValidatorId(const std::string& theId);CONFIG_EXPORT void setFeatureId(
36       const std::string& theId);CONFIG_EXPORT void setAttributeId(const std::string& theId);CONFIG_EXPORT void setValidatorParameters(
37       const std::list<std::string>& parameters);
38 };
39
40 #endif /* Config_ValidatorMessage_H_ */