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

◆ Spawn()

virtual MessageHandlerPtr drama::Spawnable::Spawn ( )
protectedpure virtual

An Action has been spawned, return a handler for the message.

This method is invoked each time the action is spawned, that is; each time a message for the action is received.

Returns
A pointer to an object to be used to handle the message. The MessageEvent method of this object will be invoked and can then work as per a normal (non-spawnable) MessageHandler object.