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

◆ MonitorForward() [2/3]

template<typename ContainerType >
void drama::Path::MonitorForward ( thread::TMessHandler taction,
const std::string &  task,
const std::string  action,
const ContainerType pars,
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 as a container of strings.

Template Parameters
ContainerTypeFor the container itself, any acceptable to a "for" loop with "auto" range should work, but it must also support the value_type item (which gives the type of the value). (So any STL container should work). The value type of the container must be convertible to a std::string (static assertion at compile time)
Parameters
tactionA pointer to the threaded action or threaded uface handler which is executing this operation.
taskThe name of the task we will forward too.
actionThe action to invoke in task.
parsThe parameters we will monitor.
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::sds::Id::CreateArgStruct(), drama::CreateRunDramaTask(), and drama::Path::MonitorForward().