opendnp3  3.0.0
Reference implementation of DNP3 (IEEE-1815)
opendnp3::OctetString Class Reference

Respresents group 110/111 objects. More...

#include <opendnp3/app/OctetString.h>

Public Member Functions

 OctetString ()
 Construct with a default value of [0x00] (length == 1) More...
 
 OctetString (const Buffer &buffer)
 Construct from read-only buffer slice. More...
 
 OctetString (const char *input)
 Construct from a c-style string. More...
 
- Public Member Functions inherited from opendnp3::OctetData
 OctetData ()
 Construct with a default value of [0x00] (length == 1) More...
 
 OctetData (const Buffer &input)
 Construct from read-only buffer slice. More...
 
 OctetData (const char *input)
 Construct from a c-style string. More...
 
bool Set (const Buffer &input)
 Set the octet data to the input buffer. More...
 
bool Set (const char *input)
 Set the buffer equal to the supplied c-string. More...
 
uint8_t Size () const
 
const Buffer ToBuffer () const
 

Additional Inherited Members

- Static Public Attributes inherited from opendnp3::OctetData
static const uint8_t MAX_SIZE = 255
 

Detailed Description

Respresents group 110/111 objects.

Definition at line 31 of file OctetString.h.

Constructor & Destructor Documentation

◆ OctetString() [1/3]

opendnp3::OctetString::OctetString ( )
inline

Construct with a default value of [0x00] (length == 1)

Definition at line 37 of file OctetString.h.

◆ OctetString() [2/3]

opendnp3::OctetString::OctetString ( const char *  input)
inline

Construct from a c-style string.

strlen() is used internally to determine the length

If the length is 0, the default value of [0x00] is assigned If the length is > 255, only the first 255 bytes are copied

The null terminator is NOT copied as part of buffer

Definition at line 49 of file OctetString.h.

◆ OctetString() [3/3]

opendnp3::OctetString::OctetString ( const Buffer buffer)
inline

Construct from read-only buffer slice.

If the length is 0, the default value of [0x00] is assigned If the length is > 255, only the first 255 bytes are copied

Definition at line 57 of file OctetString.h.


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