opendnp3
3.1.0
Reference implementation of DNP3 (IEEE-1815)
|
Interface used to dispatch SELECT / OPERATE / DIRECT OPERATE from application code to a master. More...
#include <opendnp3/master/ICommandProcessor.h>
Public Member Functions | |
virtual void | DirectOperate (CommandSet &&commands, const CommandResultCallbackT &callback, const TaskConfig &config=TaskConfig::Default())=0 |
Direct operate a set of commands. More... | |
template<class T > | |
void | DirectOperate (const T &command, uint16_t index, const CommandResultCallbackT &callback, const TaskConfig &config=TaskConfig::Default()) |
Direct operate a single command. More... | |
virtual void | SelectAndOperate (CommandSet &&commands, const CommandResultCallbackT &callback, const TaskConfig &config=TaskConfig::Default())=0 |
Select and operate a set of commands. More... | |
template<class T > | |
void | SelectAndOperate (const T &command, uint16_t index, const CommandResultCallbackT &callback, const TaskConfig &config=TaskConfig::Default()) |
Select/operate a single command. More... | |
Interface used to dispatch SELECT / OPERATE / DIRECT OPERATE from application code to a master.
Definition at line 33 of file ICommandProcessor.h.
|
pure virtual |
Direct operate a set of commands.
commands | Set of command headers |
callback | callback that will be invoked upon completion or failure |
config | optional configuration that controls normal callbacks and allows the user to be specified for SA |
Referenced by DirectOperate().
void opendnp3::ICommandProcessor::DirectOperate | ( | const T & | command, |
uint16_t | index, | ||
const CommandResultCallbackT & | callback, | ||
const TaskConfig & | config = TaskConfig::Default() |
||
) |
Direct operate a single command.
command | Command to operate |
index | of the command |
callback | callback that will be invoked upon completion or failure |
config | optional configuration that controls normal callbacks and allows the user to be specified for SA |
Definition at line 100 of file ICommandProcessor.h.
References DirectOperate(), and opendnp3::WithIndex().
|
pure virtual |
Select and operate a set of commands.
commands | Set of command headers |
callback | callback that will be invoked upon completion or failure |
config | optional configuration that controls normal callbacks and allows the user to be specified for SA |
Referenced by SelectAndOperate().
void opendnp3::ICommandProcessor::SelectAndOperate | ( | const T & | command, |
uint16_t | index, | ||
const CommandResultCallbackT & | callback, | ||
const TaskConfig & | config = TaskConfig::Default() |
||
) |
Select/operate a single command.
command | Command to operate |
index | of the command |
callback | callback that will be invoked upon completion or failure |
config | optional configuration that controls normal callbacks and allows the user to be specified for SA |
Definition at line 90 of file ICommandProcessor.h.
References SelectAndOperate(), and opendnp3::WithIndex().