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

#include <DeviceLogSerial.h>

Inheritance diagram for cDeviceLogSerial:
Inheritance graph
[legend]

Public Member Functions

 cDeviceLogSerial ()
 
bool CloseAllFiles () OVERRIDE
 
void Flush () OVERRIDE
 
void InitDeviceForWriting (int pHandle, std::string timestamp, std::string directory, uint64_t maxDiskSpace, uint32_t maxFilesize) OVERRIDE
 
std::string LogFileExtention () OVERRIDE
 
p_data_tReadData () OVERRIDE
 
bool SaveData (p_data_hdr_t *dataHdr, const uint8_t *dataBuf) OVERRIDE
 
void SetSerialNumber (uint32_t serialNumber) OVERRIDE
 
- Public Member Functions inherited from cDeviceLog
 cDeviceLog ()
 
uint32_t FileCount ()
 
uint64_t FileSize ()
 
const dev_info_tGetDeviceInfo ()
 
virtual void InitDeviceForReading ()
 
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

cDataChunk m_chunk
 

Private Member Functions

bool ReadChunkFromFile ()
 
p_data_tReadDataFromChunk ()
 
bool WriteChunkToFile ()
 

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 27 of file DeviceLogSerial.h.

Constructor & Destructor Documentation

◆ cDeviceLogSerial()

cDeviceLogSerial::cDeviceLogSerial ( )
inline

Definition at line 30 of file DeviceLogSerial.h.

Member Function Documentation

◆ CloseAllFiles()

bool cDeviceLogSerial::CloseAllFiles ( )
virtual

Reimplemented from cDeviceLog.

Definition at line 39 of file DeviceLogSerial.cpp.

◆ Flush()

void cDeviceLogSerial::Flush ( )
virtual

Reimplemented from cDeviceLog.

Definition at line 194 of file DeviceLogSerial.cpp.

◆ InitDeviceForWriting()

void cDeviceLogSerial::InitDeviceForWriting ( int  pHandle,
std::string  timestamp,
std::string  directory,
uint64_t  maxDiskSpace,
uint32_t  maxFilesize 
)

Definition at line 30 of file DeviceLogSerial.cpp.

◆ LogFileExtention()

std::string cDeviceLogSerial::LogFileExtention ( )
inlinevirtual

Implements cDeviceLog.

Definition at line 37 of file DeviceLogSerial.h.

◆ ReadChunkFromFile()

bool cDeviceLogSerial::ReadChunkFromFile ( )
private

Definition at line 172 of file DeviceLogSerial.cpp.

◆ ReadData()

p_data_t * cDeviceLogSerial::ReadData ( )
virtual

Implements cDeviceLog.

Definition at line 131 of file DeviceLogSerial.cpp.

◆ ReadDataFromChunk()

p_data_t * cDeviceLogSerial::ReadDataFromChunk ( )
private

Definition at line 151 of file DeviceLogSerial.cpp.

◆ SaveData()

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

Reimplemented from cDeviceLog.

Definition at line 53 of file DeviceLogSerial.cpp.

◆ SetSerialNumber()

void cDeviceLogSerial::SetSerialNumber ( uint32_t  serialNumber)
virtual

Implements cDeviceLog.

Definition at line 187 of file DeviceLogSerial.cpp.

◆ WriteChunkToFile()

bool cDeviceLogSerial::WriteChunkToFile ( )
private

Definition at line 96 of file DeviceLogSerial.cpp.

Member Data Documentation

◆ m_chunk

cDataChunk cDeviceLogSerial::m_chunk

Definition at line 40 of file DeviceLogSerial.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