Public Member Functions | Public Attributes | List of all members
cDeviceLogSorted Class Reference

#include <DeviceLogSorted.h>

Inheritance diagram for cDeviceLogSorted:
Inheritance graph
[legend]

Public Member Functions

 cDeviceLogSorted ()
 
bool CloseAllFiles () OVERRIDE
 
void InitDeviceForReading () OVERRIDE
 
void InitDeviceForWriting (int pHandle, std::string timestamp, std::string directory, uint64_t maxDiskSpace, uint32_t maxFileSize) OVERRIDE
 
string LogFileExtention () OVERRIDE
 
bool ReadAllChunksFromFile ()
 
bool ReadChunkFromFile (cSortedDataChunk *chunk)
 
p_data_tReadData () OVERRIDE
 
bool SaveData (p_data_hdr_t *dataHdr, const uint8_t *dataBuf) OVERRIDE
 
p_data_tSerializeDataFromChunks ()
 
void SetSerialNumber (uint32_t serialNumber) OVERRIDE
 
- Public Member Functions inherited from cDeviceLog
 cDeviceLog ()
 
uint32_t FileCount ()
 
uint64_t FileSize ()
 
virtual void Flush ()
 
const dev_info_tGetDeviceInfo ()
 
virtual void InitDeviceForWriting (int pHandle, string timestamp, string directory, uint64_t maxDiskSpace, uint32_t maxFileSize)
 
uint64_t LogSize ()
 
virtual bool OpenWithSystemApp ()
 
void SetDeviceInfo (const dev_info_t *info)
 
void SetKmlConfig (bool showTracks=true, bool showPoints=true, bool showPointTimestamps=true, double pointUpdatePeriodSec=1.0, bool altClampToGround=true)
 
bool SetupReadInfo (const string &directory, const string &deviceName, const string &timeStamp)
 
virtual ~cDeviceLog ()
 

Public Attributes

cSortedDataChunkm_chunks [DID_COUNT]
 
p_data_t m_data
 
uint32_t m_dataSerNum
 
uint32_t m_lastSerNum
 
cSortedDataChunk m_readChunk
 

Additional Inherited Members

- Protected Member Functions inherited from cDeviceLog
string GetNewFileName (uint32_t serialNumber, uint32_t fileCount, const char *suffix)
 
void OnReadData (p_data_t *data)
 
bool OpenNewSaveFile ()
 
bool OpenNextReadFile ()
 
- Protected Attributes inherited from cDeviceLog
bool m_altClampToGround
 
dev_info_t m_devInfo
 
string m_directory
 
uint32_t m_fileCount
 
string m_fileName
 
vector< string > m_fileNames
 
uint64_t m_fileSize
 
uint64_t m_logSize
 
uint64_t m_maxDiskSpace
 
uint32_t m_maxFileSize
 
cISLogFileBasem_pFile
 
int m_pHandle
 
double m_pointUpdatePeriodSec
 
bool m_showPoints
 
bool m_showPointTimestamps
 
bool m_showTracks
 
string m_timeStamp
 

Detailed Description

Definition at line 26 of file DeviceLogSorted.h.

Constructor & Destructor Documentation

◆ cDeviceLogSorted()

cDeviceLogSorted::cDeviceLogSorted ( )

Definition at line 31 of file DeviceLogSorted.cpp.

Member Function Documentation

◆ CloseAllFiles()

bool cDeviceLogSorted::CloseAllFiles ( )
virtual

Reimplemented from cDeviceLog.

Definition at line 72 of file DeviceLogSorted.cpp.

◆ InitDeviceForReading()

void cDeviceLogSorted::InitDeviceForReading ( )
virtual

Reimplemented from cDeviceLog.

Definition at line 56 of file DeviceLogSorted.cpp.

◆ InitDeviceForWriting()

void cDeviceLogSorted::InitDeviceForWriting ( int  pHandle,
std::string  timestamp,
std::string  directory,
uint64_t  maxDiskSpace,
uint32_t  maxFileSize 
)

Definition at line 40 of file DeviceLogSorted.cpp.

◆ LogFileExtention()

string cDeviceLogSorted::LogFileExtention ( )
inlinevirtual

Implements cDeviceLog.

Definition at line 37 of file DeviceLogSorted.h.

◆ ReadAllChunksFromFile()

bool cDeviceLogSorted::ReadAllChunksFromFile ( )

Definition at line 330 of file DeviceLogSorted.cpp.

◆ ReadChunkFromFile()

bool cDeviceLogSorted::ReadChunkFromFile ( cSortedDataChunk chunk)

Definition at line 382 of file DeviceLogSorted.cpp.

◆ ReadData()

p_data_t * cDeviceLogSorted::ReadData ( )
virtual

Implements cDeviceLog.

Definition at line 211 of file DeviceLogSorted.cpp.

◆ SaveData()

bool cDeviceLogSorted::SaveData ( p_data_hdr_t dataHdr,
const uint8_t *  dataBuf 
)
virtual

Reimplemented from cDeviceLog.

Definition at line 104 of file DeviceLogSorted.cpp.

◆ SerializeDataFromChunks()

p_data_t * cDeviceLogSorted::SerializeDataFromChunks ( )

Definition at line 248 of file DeviceLogSorted.cpp.

◆ SetSerialNumber()

void cDeviceLogSorted::SetSerialNumber ( uint32_t  serialNumber)
virtual

Implements cDeviceLog.

Definition at line 407 of file DeviceLogSorted.cpp.

Member Data Documentation

◆ m_chunks

cSortedDataChunk* cDeviceLogSorted::m_chunks[DID_COUNT]

Definition at line 39 of file DeviceLogSorted.h.

◆ m_data

p_data_t cDeviceLogSorted::m_data

Definition at line 47 of file DeviceLogSorted.h.

◆ m_dataSerNum

uint32_t cDeviceLogSorted::m_dataSerNum

Definition at line 45 of file DeviceLogSorted.h.

◆ m_lastSerNum

uint32_t cDeviceLogSorted::m_lastSerNum

Definition at line 46 of file DeviceLogSorted.h.

◆ m_readChunk

cSortedDataChunk cDeviceLogSorted::m_readChunk

Definition at line 48 of file DeviceLogSorted.h.


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


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:18:02