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

◆ AddMth()

template<typename T >
void drama::Task::AddMth ( 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. Non-threaded version.

Parameters
actionNameThe name of the action.
methodThe method which will be invoked to implement The action. Normally specified using "&class::method" The method takes as an argument a drama::MessageHandler object, referring to the object which invokes it. It must return a drama::Request object.
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.