AFI
Advanced Forwarding Interface
|
![]() |
Data class for byte-array prefixes. More...
#include <AftData.h>
Public Types | |
typedef std::shared_ptr < AftDataPrefix > | Ptr |
Pointer type for all AftData prefixes. | |
Public Member Functions | |
AftDataPrefix (AftDataBytes newData, uint32_t newBitLength) | |
Constructor for generic byte buffer data. More... | |
AftDataPrefix (uint8_t *newData, uint32_t newBitLength) | |
Constructor for generic byte buffer data. More... | |
const AftDataBytes & | data () const |
const uint8_t * | dataArray () const |
virtual uint32_t | append (AftDataBytes &aData) |
Append contents of data object to AftDataBytes vector. More... | |
virtual const std::string | dataClass () const |
virtual std::ostream & | description (std::ostream &os) const |
Append a description of the data to an output stream. More... | |
virtual int | compare (const AftData &aData) const |
Compare data. More... | |
![]() | |
AftData (uint32_t newBitLength) | |
Base constructor for data objects. More... | |
const uint32_t | bitLength () const |
const uint32_t | byteLength () const |
bool | operator== (const AftData &aData) const |
Comparator for data. More... | |
Static Public Member Functions | |
static AftDataPrefix::Ptr | create () |
Factory generator for zero length prefix. | |
static AftDataPrefix::Ptr | create (AftDataBytes newData, uint32_t newBitLength) |
Factory generator for generic byte buffer data. More... | |
static AftDataPrefix::Ptr | create (uint8_t *newData, uint32_t newBitLength) |
Factory generator for generic byte buffer data. More... | |
Protected Attributes | |
AftDataBytes | _data |
Byte vector of prefix. | |
![]() | |
uint32_t | _bitLength |
Size of encapsulated data in bits. | |
Additional Inherited Members | |
![]() | |
void | setBitLength (uint32_t newBitLength) |
Set the bitlength of the data. More... | |
Data class for byte-array prefixes.
|
inline |
Constructor for generic byte buffer data.
[in] | newData | Vector of bytes to repesent as data |
[in] | newBitLength | Length in bits of data |
|
inline |
Constructor for generic byte buffer data.
[in] | newData | Pointer to uint8_t data to represent as data |
[in] | newBitLength | Length in bits of data |
|
inlinevirtual |
Append contents of data object to AftDataBytes vector.
[in] | data | Reference to AftDataBytes vector to append to |
Reimplemented from AftData.
|
inlinevirtual |
Compare data.
[in] | aData | Reference to data to compare against |
Reimplemented from AftData.
|
inlinestatic |
Factory generator for generic byte buffer data.
[in] | newData | Vector of bytes to repesent as data |
[in] | newBitLength | Length in bits of data |
|
inlinestatic |
Factory generator for generic byte buffer data.
[in] | newData | Pointer to uint8_t data to represent as data |
[in] | newBitLength | Length in bits of data |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from AftData.
|
inlinevirtual |
Append a description of the data to an output stream.
[in] | os | Reference to output stream to append description to |
Reimplemented from AftData.