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

◆ AddTA()

virtual void drama::Task::AddTA ( const std::string &  name,
thread::ThreadActionFunction  func,
const std::string &  descr = "" 
)
inlinevirtualinherited

Add an threaded action to the task.

An action of the specified name is added to the task. The function specified is invoked in a thread to handle messages.

Parameters
nameAction name.
funcA function to be invoked to handle messages. The function takes (as 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.