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

◆ Add() [3/3]

virtual void drama::Task::Add ( const std::string &  name,
MessageReceiveFunction  func,
const std::string &  descr = "" 
)
inlinevirtualinherited

Add an action to the task.

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

Parameters
nameAction name.
funcA function to be invoked to handle messages. The only argument to the specified function is a drama::MessageHandler object which can be used communicate with DRAMA. The function must return a reschedule request.
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.