opendnp3
3.1.0
Reference implementation of DNP3 (IEEE-1815)
|
Specifies a set of event classes e.g. More...
#include <opendnp3/app/ClassField.h>
Public Member Functions | |
ClassField () | |
ClassField (bool class0, bool class1, bool class2, bool class3) | |
ClassField (EventClass ec) | |
ClassField (PointClass pc) | |
ClassField (uint8_t mask_) | |
void | Clear (const ClassField &field) |
uint8_t | GetBitfield () const |
bool | HasAnyClass () const |
bool | HasClass0 () const |
bool | HasClass1 () const |
bool | HasClass2 () const |
bool | HasClass3 () const |
bool | HasEventClass () const |
bool | HasEventType (EventClass ec) const |
bool | Intersects (const ClassField &other) const |
bool | IsEmpty () const |
ClassField | OnlyEventClasses () const |
void | Set (const ClassField &field) |
void | Set (PointClass pc) |
Static Public Member Functions | |
static ClassField | AllClasses () |
static ClassField | AllEventClasses () |
static ClassField | None () |
Static Public Attributes | |
static const uint8_t | ALL_CLASSES = EVENT_CLASSES | CLASS_0 |
static const uint8_t | CLASS_0 = static_cast<uint8_t>(PointClass::Class0) |
static const uint8_t | CLASS_1 = static_cast<uint8_t>(PointClass::Class1) |
static const uint8_t | CLASS_2 = static_cast<uint8_t>(PointClass::Class2) |
static const uint8_t | CLASS_3 = static_cast<uint8_t>(PointClass::Class3) |
static const uint8_t | EVENT_CLASSES = CLASS_1 | CLASS_2 | CLASS_3 |
Private Attributes | |
uint8_t | bitfield |
Specifies a set of event classes e.g.
some subset of {0, 1, 2, 3}
Definition at line 34 of file ClassField.h.
opendnp3::ClassField::ClassField | ( | ) |
|
explicit |
|
explicit |
|
explicit |
|
static |
|
static |
void opendnp3::ClassField::Clear | ( | const ClassField & | field | ) |
|
inline |
Definition at line 51 of file ClassField.h.
References bitfield.
bool opendnp3::ClassField::HasAnyClass | ( | ) | const |
bool opendnp3::ClassField::HasClass0 | ( | ) | const |
bool opendnp3::ClassField::HasClass1 | ( | ) | const |
bool opendnp3::ClassField::HasClass2 | ( | ) | const |
bool opendnp3::ClassField::HasClass3 | ( | ) | const |
bool opendnp3::ClassField::HasEventClass | ( | ) | const |
bool opendnp3::ClassField::HasEventType | ( | EventClass | ec | ) | const |
bool opendnp3::ClassField::Intersects | ( | const ClassField & | other | ) | const |
bool opendnp3::ClassField::IsEmpty | ( | ) | const |
|
static |
ClassField opendnp3::ClassField::OnlyEventClasses | ( | ) | const |
void opendnp3::ClassField::Set | ( | const ClassField & | field | ) |
void opendnp3::ClassField::Set | ( | PointClass | pc | ) |
|
static |
Definition at line 69 of file ClassField.h.
|
private |
Definition at line 86 of file ClassField.h.
Referenced by GetBitfield().
|
static |
Definition at line 64 of file ClassField.h.
|
static |
Definition at line 65 of file ClassField.h.
|
static |
Definition at line 66 of file ClassField.h.
|
static |
Definition at line 67 of file ClassField.h.
Definition at line 68 of file ClassField.h.