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