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

◆ AddMthThd()

template<typename T >
void drama::Task::AddMthThd ( const std::string &  actionName,
method,
const std::string &  descr = "" 
)
inlineinherited

Add an action to the task, implemented by a method.

This method allows a method of the task object to implement the action. Threaded action version.

Parameters
actionNameThe name of the action.
methodThe method which will be invoked to implement The action. Normally specified using "&className::methodName" The method takes two arguments, a drama::thread::TAction object, referring to the object which invokes it and an SDS Id reference. Must return void.
descrAction description string. This string is output by control messages giving a list of actions of the task and can be accessed by various DRAMA interfaces.