std::vector< unsigned int > CSOIdVector
Defines a vector to hold CSO and CSOGroup IDs.
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
CSOEvent()
Standard constructor.
MLuint64 moduleEventGroupId() const
Returns a unique module CSOGroup event ID.
bool isPreCommand() const
Returns whether the event is a pre command.
void addCSOIds(const CSOIdVector &csoIds)
Adds all given CSO IDs if an ID is not INVALID_CSO_ID.
std::string customMessage() const
Returns the custom message string. This can be used to identify the method or the subroutine from whe...
CSOEventType _eventType
The event type.
CSOEventType
Enumeration for specifying the exact type of event.
@ CSO_VISUAL_ATTRIBUTE_CHANGE
@ GROUP_VISUAL_ATTRIBUTE_CHANGE
@ CSOLIST_EVENT_GROUP_CLOSE
@ GROUP_VOXEL_WRITE_VALUE
@ CSOLIST_EVENT_GROUP_OPEN
std::string senderName() const
Returns the sender name string. This is typically the module instance name from where the event is se...
CSOIdVector _groupIds
Vector of CSOGroup IDs.
void addCSOId(unsigned int id)
Adds a CSO ID if id is not INVALID_CSO_ID.
CSOIdVector _csoIds
Vector of CSO IDs.
void addGroupId(unsigned int id)
Adds a CSOGroup ID if id is not INVALID_CSO_ID.
static std::string getEventTypeName(CSOEventType eventType)
Maps event types to strings with their name.
void setSenderType(const std::string &senderTypeArg)
Sets the sender type string. This is typically the module type from where the event is sent.
std::string _customMessage
ML_CLASS_HEADER(CSOEvent)
void setModuleEventGroupId(MLuint64 id)
Sets a unique event ID. This is done by the module CSOGroup scope class. No need to temper with it.
CSOEvent(CSOEventType eventTypeArg, bool isPostCommandArg=true)
Constructor taking an event type and whether it is a pre/post command.
bool hasGroupIds() const
Returns whether CSOGroup IDs are registered with this event.
bool _isPostCommand
Whether it is a pre or post command.
CSOEventType eventType() const
Returns the event type.
const CSOIdVector & groupIds() const
Returns the vector with CSOGroup IDs.
void setEventType(CSOEventType eventTypeArg)
Sets the event type.
MLuint64 _moduleEventGroupId
bool isPostCommand() const
Returns whether the event is a post command.
void setCustomMessage(const std::string &customMessageArg)
Sets the custom message string. This can be used to identify the method or the subroutine from where ...
void setIsPostCommand(bool flag)
Sets whether the event is a pre or post command.
void setSenderName(const std::string &senderNameArg)
Sets the sender name string. This is typically the module instance name from where the event is sent.
std::string senderType() const
Returns the sender type string. This is typically the module type from where the event is sent.
const CSOIdVector & csoIds() const
Returns the vector with CSO IDs.
bool hasCSOIds() const
Returns whether CSO IDs are registered with this event.
void addGroupIds(const CSOIdVector &groupIds)
Adds all given CSOGroup IDs if an ID is not INVALID_CSO_ID.
UINT64 MLuint64
Introduce platform-independent 64-bit unsigned integer type.