opendnp3
3.1.0
Reference implementation of DNP3 (IEEE-1815)
|
Provides a mechanism for building a set of one or more command headers. More...
#include <opendnp3/master/CommandSet.h>
Public Types | |
typedef std::vector< std::shared_ptr< ICommandHeader > > | HeaderVector |
Public Member Functions | |
CommandSet ()=default | |
Contrsuct an empty command set. More... | |
CommandSet (CommandSet &&other) | |
Construct a new command set and take ownership of the headers in argument. More... | |
CommandSet (std::initializer_list< Indexed< AnalogOutputDouble64 >> items) | |
Construct a command set from a list of AODouble64. More... | |
CommandSet (std::initializer_list< Indexed< AnalogOutputFloat32 >> items) | |
Construct a command set from a list of AOFloat32. More... | |
CommandSet (std::initializer_list< Indexed< AnalogOutputInt16 >> items) | |
Construct a command set from a list of AOInt16. More... | |
CommandSet (std::initializer_list< Indexed< AnalogOutputInt32 >> items) | |
Construct a command set from a list of AOInt32. More... | |
CommandSet (std::initializer_list< Indexed< ControlRelayOutputBlock >> items) | |
Construct a command set from a list of CROB. More... | |
~CommandSet () | |
template<class T > | |
void | Add (std::initializer_list< Indexed< T >> items) |
Convenience functions that can build an entire header in one call. More... | |
template<class T > | |
void | Add (std::vector< Indexed< T >> items) |
Convenience functions that can build an entire header in one call. More... | |
template<class T > | |
ICommandCollection< T > & | StartHeader () |
Begin a header of the parameterized type. More... | |
template<> | |
ICommandCollection< ControlRelayOutputBlock > & | StartHeader () |
template<> | |
ICommandCollection< AnalogOutputInt16 > & | StartHeader () |
template<> | |
ICommandCollection< AnalogOutputInt32 > & | StartHeader () |
template<> | |
ICommandCollection< AnalogOutputFloat32 > & | StartHeader () |
template<> | |
ICommandCollection< AnalogOutputDouble64 > & | StartHeader () |
Private Member Functions | |
CommandSet (const CommandSet &)=delete | |
template<class T > | |
void | AddAny (std::initializer_list< Indexed< T >> items) |
CommandSet & | operator= (const CommandSet &other)=delete |
ICommandCollection< AnalogOutputDouble64 > & | StartHeaderAODouble64 () |
ICommandCollection< AnalogOutputFloat32 > & | StartHeaderAOFloat32 () |
ICommandCollection< AnalogOutputInt16 > & | StartHeaderAOInt16 () |
ICommandCollection< AnalogOutputInt32 > & | StartHeaderAOInt32 () |
ICommandCollection< ControlRelayOutputBlock > & | StartHeaderCROB () |
Private Attributes | |
HeaderVector | m_headers |
Friends | |
class | CommandSetOps |
Provides a mechanism for building a set of one or more command headers.
Definition at line 41 of file CommandSet.h.
typedef std::vector<std::shared_ptr<ICommandHeader> > opendnp3::CommandSet::HeaderVector |
Definition at line 47 of file CommandSet.h.
|
default |
Contrsuct an empty command set.
opendnp3::CommandSet::~CommandSet | ( | ) |
opendnp3::CommandSet::CommandSet | ( | CommandSet && | other | ) |
Construct a new command set and take ownership of the headers in argument.
opendnp3::CommandSet::CommandSet | ( | std::initializer_list< Indexed< ControlRelayOutputBlock >> | items | ) |
Construct a command set from a list of CROB.
opendnp3::CommandSet::CommandSet | ( | std::initializer_list< Indexed< AnalogOutputInt16 >> | items | ) |
Construct a command set from a list of AOInt16.
opendnp3::CommandSet::CommandSet | ( | std::initializer_list< Indexed< AnalogOutputInt32 >> | items | ) |
Construct a command set from a list of AOInt32.
opendnp3::CommandSet::CommandSet | ( | std::initializer_list< Indexed< AnalogOutputFloat32 >> | items | ) |
Construct a command set from a list of AOFloat32.
opendnp3::CommandSet::CommandSet | ( | std::initializer_list< Indexed< AnalogOutputDouble64 >> | items | ) |
Construct a command set from a list of AODouble64.
|
privatedelete |
|
inline |
Convenience functions that can build an entire header in one call.
Definition at line 74 of file CommandSet.h.
|
inline |
Convenience functions that can build an entire header in one call.
Definition at line 87 of file CommandSet.h.
|
private |
|
privatedelete |
ICommandCollection<T>& opendnp3::CommandSet::StartHeader | ( | ) |
Begin a header of the parameterized type.
|
inline |
Definition at line 117 of file CommandSet.h.
References StartHeaderCROB().
|
inline |
Definition at line 122 of file CommandSet.h.
References StartHeaderAOInt16().
|
inline |
Definition at line 127 of file CommandSet.h.
References StartHeaderAOInt32().
|
inline |
Definition at line 132 of file CommandSet.h.
References StartHeaderAOFloat32().
|
inline |
Definition at line 137 of file CommandSet.h.
References StartHeaderAODouble64().
|
private |
Referenced by StartHeader().
|
private |
Referenced by StartHeader().
|
private |
Referenced by StartHeader().
|
private |
Referenced by StartHeader().
|
private |
Referenced by StartHeader().
|
friend |
Definition at line 44 of file CommandSet.h.
|
private |
Definition at line 114 of file CommandSet.h.