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

◆ SetDetails()

void drama::Task::SetDetails ( const std::string &  descr,
int  type = 0 
)
inherited

Set task details.

The task details are some additional information about itself that other tasks can access (through the inquiry methods GetTaskType() and GetTaskDescr(), or underlying DITS methods DitsGetTaskType() and DitsGetTaskDescr()). This can make it easier for other tasks to decide if they want to try to communicate with this task.

The IMP system allows a single integer type field and a character string to be associated with the current task using this routine. The meaning of these is entirely up to the task itself (or more usually, up the the designer of a set of cooperating tasks).

In AAO DRAMA systems, it is currently only the description which is used, an it just happens to provide a nice description output by the "tasks" command

Parameters
descrThe task description. This will be truncated at IMP_DESCR_LEN bytes (currently 31 bytes).
typeThe task type.