Public Member Functions | Public Attributes | Protected Member Functions | Private Attributes | List of all members
cDataChunk Class Reference

#include <DataChunk.h>

Inheritance diagram for cDataChunk:
Inheritance graph
[legend]

Public Member Functions

 cDataChunk ()
 
virtual void Clear ()
 
uint32_t GetBuffFree ()
 
uint32_t GetBuffSize ()
 
uint8_t * GetDataPtr ()
 
uint32_t GetDataSize ()
 
bool PopFront (uint32_t size)
 
bool PushBack (uint8_t *d1, uint32_t d1Size, uint8_t *d2=NULL, uint32_t d2Size=0)
 
int32_t ReadFromFile (cISLogFileBase *pFile)
 
void SetName (const char name[4])
 
int32_t WriteToFile (cISLogFileBase *pFile, int groupNumber=0)
 
virtual ~cDataChunk ()
 

Public Attributes

sChunkHeader m_hdr
 

Protected Member Functions

virtual int32_t GetHeaderSize ()
 
virtual int32_t ReadAdditionalChunkHeader (cISLogFileBase *pFile)
 
virtual int32_t WriteAdditionalChunkHeader (cISLogFileBase *pFile)
 

Private Attributes

uint8_t m_buffHead [DEFAULT_CHUNK_DATA_SIZE]
 
uint8_t * m_buffTail
 
uint8_t * m_dataHead
 
uint8_t * m_dataTail
 

Detailed Description

Definition at line 76 of file DataChunk.h.

Constructor & Destructor Documentation

◆ cDataChunk()

cDataChunk::cDataChunk ( )

< Chunk group number

< Serial number

< Reserved

Definition at line 21 of file DataChunk.cpp.

◆ ~cDataChunk()

cDataChunk::~cDataChunk ( )
virtual

Definition at line 38 of file DataChunk.cpp.

Member Function Documentation

◆ Clear()

void cDataChunk::Clear ( )
virtual

< Byte size of data in this chunk

< Bitwise inverse of m_Size

Reimplemented in cSortedDataChunk.

Definition at line 110 of file DataChunk.cpp.

◆ GetBuffFree()

uint32_t cDataChunk::GetBuffFree ( )
inline

Definition at line 83 of file DataChunk.h.

◆ GetBuffSize()

uint32_t cDataChunk::GetBuffSize ( )
inline

Definition at line 82 of file DataChunk.h.

◆ GetDataPtr()

uint8_t * cDataChunk::GetDataPtr ( )

Definition at line 85 of file DataChunk.cpp.

◆ GetDataSize()

uint32_t cDataChunk::GetDataSize ( )
inline

Definition at line 84 of file DataChunk.h.

◆ GetHeaderSize()

int32_t cDataChunk::GetHeaderSize ( )
protectedvirtual

Reimplemented in cSortedDataChunk.

Definition at line 271 of file DataChunk.cpp.

◆ PopFront()

bool cDataChunk::PopFront ( uint32_t  size)

Definition at line 91 of file DataChunk.cpp.

◆ PushBack()

bool cDataChunk::PushBack ( uint8_t *  d1,
uint32_t  d1Size,
uint8_t *  d2 = NULL,
uint32_t  d2Size = 0 
)

Definition at line 59 of file DataChunk.cpp.

◆ ReadAdditionalChunkHeader()

int32_t cDataChunk::ReadAdditionalChunkHeader ( cISLogFileBase pFile)
protectedvirtual

Reimplemented in cSortedDataChunk.

Definition at line 265 of file DataChunk.cpp.

◆ ReadFromFile()

int32_t cDataChunk::ReadFromFile ( cISLogFileBase pFile)

Definition at line 167 of file DataChunk.cpp.

◆ SetName()

void cDataChunk::SetName ( const char  name[4])

Definition at line 44 of file DataChunk.cpp.

◆ WriteAdditionalChunkHeader()

int32_t cDataChunk::WriteAdditionalChunkHeader ( cISLogFileBase pFile)
protectedvirtual

Reimplemented in cSortedDataChunk.

Definition at line 259 of file DataChunk.cpp.

◆ WriteToFile()

int32_t cDataChunk::WriteToFile ( cISLogFileBase pFile,
int  groupNumber = 0 
)

Definition at line 124 of file DataChunk.cpp.

Member Data Documentation

◆ m_buffHead

uint8_t cDataChunk::m_buffHead[DEFAULT_CHUNK_DATA_SIZE]
private

Definition at line 111 of file DataChunk.h.

◆ m_buffTail

uint8_t* cDataChunk::m_buffTail
private

Definition at line 112 of file DataChunk.h.

◆ m_dataHead

uint8_t* cDataChunk::m_dataHead
private

Definition at line 113 of file DataChunk.h.

◆ m_dataTail

uint8_t* cDataChunk::m_dataTail
private

Definition at line 114 of file DataChunk.h.

◆ m_hdr

sChunkHeader cDataChunk::m_hdr

Definition at line 94 of file DataChunk.h.


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


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:09