20 #ifndef ATTRIBUTE_MESSAGE_H
21 #define ATTRIBUTE_MESSAGE_H
23 #include <Config_def.h>
24 #include <Config_FeatureMessage.h>
25 #include <Events_Message.h>
39 std::string myAttributeId;
40 std::string myFeatureId;
43 bool myIsMainArgument;
44 bool myIsGeometricalSelection;
46 std::list<std::pair<std::string, std::string> > myCases;
62 CONFIG_EXPORT
const std::string&
attributeId()
const;
64 CONFIG_EXPORT
const std::string&
featureId()
const;
75 CONFIG_EXPORT
const std::list<std::pair<std::string, std::string> >&
getCases()
const;
77 CONFIG_EXPORT
void setCases(
const std::list<std::pair<std::string, std::string> >& theCases);
Class to pass an attribute's (widget's) entry info extracted from xml file.
Definition: Config_AttributeMessage.h:38
CONFIG_EXPORT void setConcealment(bool isConcealment)
Set attribute's concealment state.
Definition: Config_AttributeMessage.cpp:62
CONFIG_EXPORT bool isObligatory() const
Returns true if attribute is obligatory: Required to be set by user, else it's feature is invalid.
Definition: Config_AttributeMessage.cpp:67
CONFIG_EXPORT bool isMainArgument() const
Returns true if attribute is a main argument of the feature.
Definition: Config_AttributeMessage.cpp:88
CONFIG_EXPORT bool isGeometricalSelection() const
Returns true if attribute selects geometry instead of shape;.
Definition: Config_AttributeMessage.cpp:98
CONFIG_EXPORT const std::string & featureId() const
Returns attribute's feature's unique id.
Definition: Config_AttributeMessage.cpp:37
CONFIG_EXPORT const std::string & attributeId() const
Returns attribute's unique id.
Definition: Config_AttributeMessage.cpp:47
CONFIG_EXPORT void setObligatory(bool isObligatory)
Set attribute's obligatory state.
Definition: Config_AttributeMessage.cpp:72
virtual CONFIG_EXPORT ~Config_AttributeMessage()
Destructor.
Definition: Config_AttributeMessage.cpp:32
CONFIG_EXPORT void setFeatureId(const std::string &id)
Set attribute's feature's unique id.
Definition: Config_AttributeMessage.cpp:42
static const char * MODEL_EVENT()
Same event as Config_FeatureMessage::MODEL_EVENT()
Definition: Config_AttributeMessage.h:50
CONFIG_EXPORT void setAttributeId(const std::string &theId)
Set attribute's unique id.
Definition: Config_AttributeMessage.cpp:52
CONFIG_EXPORT bool isConcealment() const
Returns true if attribute should conceal input features.
Definition: Config_AttributeMessage.cpp:57
CONFIG_EXPORT const std::list< std::pair< std::string, std::string > > & getCases() const
Returns container of ids of pair of a case and switches.
Definition: Config_AttributeMessage.cpp:77
CONFIG_EXPORT Config_AttributeMessage(const Events_ID theId, const void *theParent=0)
Constructor.
Definition: Config_AttributeMessage.cpp:22
CONFIG_EXPORT void setGeometricalSelection(bool isGeometricalSelection)
Set attribute's geometrical selection state.
Definition: Config_AttributeMessage.cpp:103
CONFIG_EXPORT void setMainArgument(bool isMainArg)
Set a state that the attribute is a main argument of the feature.
Definition: Config_AttributeMessage.cpp:93
CONFIG_EXPORT void setCases(const std::list< std::pair< std::string, std::string > > &theCases)
Sets ids of pair of a case and switches.
Definition: Config_AttributeMessage.cpp:82
static const char * MODEL_EVENT()
Event ID that feature is loaded in workbench (Model)
Definition: Config_FeatureMessage.h:75
Identifier of the event kind.
Definition: Events_Message.h:36
Message for communication between sender and listener of event.
Definition: Events_Message.h:65