1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
4 * Config_ValidatorMessage.h
6 * Created on: 08 Jul 2014 �.
10 #ifndef CONFIG_VALIDATORMESSAGE_H_
11 #define CONFIG_VALIDATORMESSAGE_H_
13 #include <Events_Message.h>
14 #include <Config_def.h>
19 /// Event ID that Validator is loaded (comes with Config_ValidatorMessage)
20 static const char * EVENT_VALIDATOR_LOADED = "ValidatorLoaded";
23 * \class Config_ValidatorMessage
24 * \brief Transmits info about created validator on "ValidatorLoaded" event
26 class Config_ValidatorMessage : public Events_Message
28 std::string myValidatorId;
29 std::string myFeatureId;
30 std::string myAttributeId;
31 std::list<std::string> myVaidatorParameters;
34 CONFIG_EXPORT Config_ValidatorMessage(const Events_ID theId, const void* theParent = 0);
35 CONFIG_EXPORT virtual ~Config_ValidatorMessage();
37 //! Get id of the filter
38 CONFIG_EXPORT const std::string& validatorId() const;
39 //! Get id of a feature to which the filter belongs to
40 CONFIG_EXPORT const std::string& featureId() const;
41 //! Get id of an attribute to which the filter belongs to
42 CONFIG_EXPORT const std::string& attributeId() const;
43 //! Get filter parameters
44 CONFIG_EXPORT const std::list<std::string>& parameters() const;
45 //! Returns true if validator id is not empty
46 CONFIG_EXPORT bool isValid() const;
48 //! Set id of the filter
49 CONFIG_EXPORT void setValidatorId(const std::string& theId);
50 //! Set id of a feature to which the filter belongs to
51 CONFIG_EXPORT void setFeatureId(const std::string& theId);
52 //! Set id of an attribute to which the filter belongs to
53 CONFIG_EXPORT void setAttributeId(const std::string& theId);
54 //! Get filter parameters
55 CONFIG_EXPORT void setValidatorParameters(const std::list<std::string>& parameters);
58 #endif /* Config_ValidatorMessage_H_ */