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

◆ Add() [2/3]

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

Add an action to the task.

An action of the specified name is added to the task. The MessageHandler pointed to by obj is used to handle the messages.

Parameters
nameAction name.
objMessageHandler 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.
Examples
dramahello.cpp, gitpathtest.cpp, monitor1.cpp, monitor2.cpp, threadbasic.cpp, and tocker.cpp.