HDLC-Daemon
HdlcdPacketData Class Reference

#include <HdlcdPacketData.h>

Inheritance diagram for HdlcdPacketData:
Collaboration diagram for HdlcdPacketData:

Public Member Functions

const std::vector< unsigned char > & GetData () const
 
bool GetReliable () const
 
bool GetInvalid () const
 
bool GetWasSent () const
 
- Public Member Functions inherited from Frame
 Frame ()
 The constructor of Frame objects. More...
 
virtual ~Frame ()
 The destructor of Frame objects. More...
 
size_t BytesNeeded () const
 Query the amount of outstanding data during reception for frame assembly. More...
 
bool ParseBytes (const unsigned char *a_ReadBuffer, size_t &a_ReadBufferOffset, size_t &a_BytesAvailable)
 Deliver a chunk of received bytes in the phase of deserialization. More...
 

Static Public Member Functions

static HdlcdPacketData CreatePacket (const std::vector< unsigned char > a_Payload, bool a_bReliable, bool a_bInvalid=false, bool a_bWasSent=false)
 
static std::shared_ptr< HdlcdPacketDataCreateDeserializedPacket ()
 

Additional Inherited Members

- Protected Attributes inherited from Frame
std::vector< unsigned char > m_Buffer
 The buffer containing partly received frames or higher-layer payload. More...
 
size_t m_BytesRemaining
 The amount of bytes required to finalize frame assembly during reception. More...
 

Detailed Description

Definition at line 43 of file HdlcdPacketData.h.

Member Function Documentation

static std::shared_ptr<HdlcdPacketData> HdlcdPacketData::CreateDeserializedPacket ( )
inlinestatic

Definition at line 55 of file HdlcdPacketData.h.

Here is the caller graph for this function:

static HdlcdPacketData HdlcdPacketData::CreatePacket ( const std::vector< unsigned char >  a_Payload,
bool  a_bReliable,
bool  a_bInvalid = false,
bool  a_bWasSent = false 
)
inlinestatic

Definition at line 45 of file HdlcdPacketData.h.

Here is the caller graph for this function:

const std::vector<unsigned char>& HdlcdPacketData::GetData ( ) const
inline

Definition at line 63 of file HdlcdPacketData.h.

bool HdlcdPacketData::GetInvalid ( ) const
inline

Definition at line 73 of file HdlcdPacketData.h.

bool HdlcdPacketData::GetReliable ( ) const
inline

Definition at line 68 of file HdlcdPacketData.h.

bool HdlcdPacketData::GetWasSent ( ) const
inline

Definition at line 78 of file HdlcdPacketData.h.


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