SHAPER
9.13.0
|
Message that allows to group messages and send them later as a group of messages. More...
Public Member Functions | |
Events_MessageGroup (const Events_ID theID, const void *theSender=0) | |
Creates the message. More... | |
virtual | ~Events_MessageGroup () |
do nothing in the destructor yet More... | |
virtual std::shared_ptr< Events_MessageGroup > | newEmpty ()=0 |
Creates a new empty group (to store it in the loop before flush) More... | |
virtual void | Join (const std::shared_ptr< Events_MessageGroup > &theJoined)=0 |
Allows to join the given message with the current one. More... | |
const Events_ID & | eventID () const |
Returns identifier of the message. More... | |
void * | sender () const |
Returns sender of the message or NULL if it is anonymous message. More... | |
Message that allows to group messages and send them later as a group of messages.
Loop detects such messages and accumulates them without sending. On "flush" loop sends it as a group-message.
Events_MessageGroup::Events_MessageGroup | ( | const Events_ID | theID, |
const void * | theSender = 0 |
||
) |
Creates the message.
|
virtual |
do nothing in the destructor yet
|
pure virtual |
Creates a new empty group (to store it in the loop before flush)
Implemented in ModelAPI_ObjectDeletedMessage, ModelAPI_ObjectUpdatedMessage, Model_ObjectDeletedMessage, and Model_ObjectUpdatedMessage.
|
pure virtual |
Allows to join the given message with the current one.
Implemented in ModelAPI_ObjectDeletedMessage, ModelAPI_ObjectUpdatedMessage, Model_ObjectDeletedMessage, and Model_ObjectUpdatedMessage.
|
inlineinherited |
Returns identifier of the message.
|
inlineinherited |
Returns sender of the message or NULL if it is anonymous message.