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

◆ AddSpawnable() [2/2]

virtual void drama::Task::AddSpawnable ( const std::string &  name,
SpawnablePtr  obj,
const std::string &  descr = "" 
)
inlinevirtualinherited

Add a spawnable action to the task.

A spawnable action of the specified name is added to the task. The Spawnable object pointed to by obj is used to handle the messages.

Parameters
nameAction name.
objSpawnable object pointer, passed by std::shared_ptr().
descrAction description string. Optional, if not specified an empty string is supplied. This string is output by control messages giving a list of actions of the task and can be accessed by various DRAMA interfaces.