1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 #ifndef ATTRIBUTE_MESSAGE_H
4 #define ATTRIBUTE_MESSAGE_H
6 #include <Config_def.h>
7 #include <Config_FeatureMessage.h>
8 #include <Events_Message.h>
13 * \class Config_AttributeMessage
14 * \brief Class to pass an attribute's (widget's) entry info extracted from xml file.
16 * <widget id="tool_object" concealment="true" obligatory="0"/>
19 class Config_AttributeMessage : public Events_Message
21 std::string myAttributeId; //Feature unique id
22 std::string myFeatureId; //Feature unique id
27 // Same event as Config_FeatureMessage::MODEL_EVENT()
28 inline static const char* MODEL_EVENT()
30 return Config_FeatureMessage::MODEL_EVENT();
33 //const Events_ID theID, const void* theSender = 0
34 CONFIG_EXPORT Config_AttributeMessage(const Events_ID theId, const void* theParent = 0);
35 CONFIG_EXPORT virtual ~Config_AttributeMessage();
37 //Auto-generated getters/setters
38 CONFIG_EXPORT const std::string& attributeId() const;
39 CONFIG_EXPORT const std::string& featureId() const;
40 CONFIG_EXPORT bool isObligatory() const;
41 CONFIG_EXPORT bool isConcealment() const;
43 CONFIG_EXPORT void setAttributeId(const std::string& theId);
44 CONFIG_EXPORT void setFeatureId(const std::string& id);
45 CONFIG_EXPORT void setConcealment(bool isConcealment);
46 CONFIG_EXPORT void setObligatory(bool isObligatory);
49 #endif // ATTRIBUTE_MESSAGE_H