1 #ifndef ATTRIBUTE_MESSAGE_H
2 #define ATTRIBUTE_MESSAGE_H
4 #include <Config_def.h>
5 #include <Config_FeatureMessage.h>
6 #include <Events_Message.h>
11 * Class to pass an attribute's (widget's) entry info extracted from xml file.
12 * <widget id="tool_object" concealment="true" obligatory="0"/>
14 class Config_AttributeMessage : public Events_Message
16 std::string myAttributeId; //Feature unique id
17 std::string myFeatureId; //Feature unique id
22 // Same event as Config_FeatureMessage::MODEL_EVENT()
23 inline static const char* MODEL_EVENT()
25 return Config_FeatureMessage::MODEL_EVENT();
28 //const Events_ID theID, const void* theSender = 0
29 CONFIG_EXPORT Config_AttributeMessage(const Events_ID theId, const void* theParent = 0);
30 CONFIG_EXPORT virtual ~Config_AttributeMessage();
32 //Auto-generated getters/setters
33 CONFIG_EXPORT const std::string& attributeId() const;
34 CONFIG_EXPORT const std::string& featureId() const;
35 CONFIG_EXPORT bool isObligatory() const;
36 CONFIG_EXPORT bool isConcealment() const;
38 CONFIG_EXPORT void setAttributeId(const std::string& theId);
39 CONFIG_EXPORT void setFeatureId(const std::string& id);
40 CONFIG_EXPORT void setConcealment(bool isConcealment);
41 CONFIG_EXPORT void setObligatory(bool isObligatory);
44 #endif // ATTRIBUTE_MESSAGE_H