opendnp3  3.1.0
Reference implementation of DNP3 (IEEE-1815)
opendnp3::BinaryCommandEvent Class Reference

Maps to Group13Var1/2. More...

#include <opendnp3/app/BinaryCommandEvent.h>

Public Member Functions

 BinaryCommandEvent ()
 
 BinaryCommandEvent (bool value, CommandStatus status)
 
 BinaryCommandEvent (bool value, CommandStatus status, DNPTime time)
 
 BinaryCommandEvent (Flags flags)
 
 BinaryCommandEvent (Flags flags, DNPTime time)
 
Flags GetFlags () const
 
bool operator== (const BinaryCommandEvent &rhs) const
 

Public Attributes

CommandStatus status
 
DNPTime time
 
bool value
 

Static Private Member Functions

static CommandStatus GetStatusFromFlags (Flags flags)
 
static bool GetValueFromFlags (Flags flags)
 

Static Private Attributes

static const uint8_t StatusMask = 0x7F
 
static const uint8_t ValueMask = 0x80
 

Detailed Description

Maps to Group13Var1/2.

Definition at line 34 of file BinaryCommandEvent.h.

Constructor & Destructor Documentation

◆ BinaryCommandEvent() [1/5]

opendnp3::BinaryCommandEvent::BinaryCommandEvent ( )

◆ BinaryCommandEvent() [2/5]

opendnp3::BinaryCommandEvent::BinaryCommandEvent ( Flags  flags)

◆ BinaryCommandEvent() [3/5]

opendnp3::BinaryCommandEvent::BinaryCommandEvent ( Flags  flags,
DNPTime  time 
)

◆ BinaryCommandEvent() [4/5]

opendnp3::BinaryCommandEvent::BinaryCommandEvent ( bool  value,
CommandStatus  status 
)

◆ BinaryCommandEvent() [5/5]

opendnp3::BinaryCommandEvent::BinaryCommandEvent ( bool  value,
CommandStatus  status,
DNPTime  time 
)

Member Function Documentation

◆ GetFlags()

Flags opendnp3::BinaryCommandEvent::GetFlags ( ) const

◆ GetStatusFromFlags()

static CommandStatus opendnp3::BinaryCommandEvent::GetStatusFromFlags ( Flags  flags)
staticprivate

◆ GetValueFromFlags()

static bool opendnp3::BinaryCommandEvent::GetValueFromFlags ( Flags  flags)
staticprivate

◆ operator==()

bool opendnp3::BinaryCommandEvent::operator== ( const BinaryCommandEvent rhs) const

Member Data Documentation

◆ status

CommandStatus opendnp3::BinaryCommandEvent::status

Definition at line 48 of file BinaryCommandEvent.h.

◆ StatusMask

const uint8_t opendnp3::BinaryCommandEvent::StatusMask = 0x7F
staticprivate

Definition at line 57 of file BinaryCommandEvent.h.

◆ time

DNPTime opendnp3::BinaryCommandEvent::time

Definition at line 49 of file BinaryCommandEvent.h.

◆ value

bool opendnp3::BinaryCommandEvent::value

Definition at line 47 of file BinaryCommandEvent.h.

◆ ValueMask

const uint8_t opendnp3::BinaryCommandEvent::ValueMask = 0x80
staticprivate

Definition at line 56 of file BinaryCommandEvent.h.


The documentation for this class was generated from the following file: