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

◆ GetTask()

virtual std::shared_ptr< Task > drama::MessageHandler::GetTask ( ) const
inlinevirtualinherited

Returns a pointer to the task.

If we are not in an action or action end handler, then returns nullptr.

Note
Only valid if invoked in the contact of MessageReceived() being invoked.
Returns
pointer to the task object.

Reimplemented in drama::thread::TAction.