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

◆ MonitorForward() [1/3]

void drama::Path::MonitorForward ( thread::TMessHandler action,
const sds::Id argIn,
MessageEventHandler *const  eventProcessor = &_simpleMonEventProcessor 
)
inlineinherited

Send a Monitor Forward message to a task and block until it is complete.

This version allows the target task and action, and the list of parameters to be specified in the SDS structure format wanted by the DRAMA MONITOR message.

Parameters
actionA pointer to the threaded action or threaded uface handler which is executing this operation.
argInArgument to the action. The first item is the name of the task to forward the monitor too, the second is the action to be invoked, subsequent arguments are the parameters to be monitored. You can use "drama::sds::Id::CreateArgCmdStruct() to create this argument.
eventProcessorAn object to use to process events. Defaults to a simple event processor that causes the method to return when the monitor completes.

References drama::TransEvtInfo::complete, drama::CreateRunDramaTask(), DramaTHROW_S, and drama::TransEvtInfo::entryStatus.

Referenced by drama::Path::MonitorForward(), and drama::Path::MonitorForward().