AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ PutKickHandler() [1/2]

virtual void drama::MessageHandler::PutKickHandler ( MessageHandlerPtr  obj)
inlinevirtualinherited

Put a message handler object for the next Kick event.

Will be reset to a null handler when the action completes.

Note
Only valid if invoked in the contact of MessageReceived() being invoked for an Obey or Kick message.
Parameters
objThe object which will handle the kick event. The MessageReceived method of this object will be invoked. Passed by std::shrared_ptr. The object must be a sub-class of drama::MessageHandler.

Reimplemented in drama::thread::TAction.

References drama::CreateRunDramaTask(), and DramaTHROW.