112 _isPostCommand =
true;
114 _moduleEventGroupId = 0;
122 _moduleEventGroupId = 0;
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.
BaseEvent is the base class for all events emitted from EventSourceBase.
Class for all CSO events.
CSOEvent()
Standard constructor.
MLuint64 moduleEventGroupId() const
Returns a unique module group 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 group 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.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
UINT64 MLuint64
Introduce platform independent 64 bit unsigned integer type.