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

#include <DeviceLogCSV.h>

Inheritance diagram for cDeviceLogCSV:
Inheritance graph
[legend]

Public Member Functions

bool CloseAllFiles () OVERRIDE
 
void InitDeviceForReading () 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 ()
 
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 ()
 

Private Member Functions

bool GetNextLineForFile (cCsvLog &log)
 
bool OpenNewFile (cCsvLog &log, bool readOnly)
 
p_data_tReadDataFromFile (cCsvLog &log)
 

Private Attributes

cDataCSV m_csv
 
map< uint32_t, uint32_t > m_currentFileIndex
 
map< uint32_t, vector< string > > m_currentFiles
 
p_data_t m_dataBuffer
 
map< uint32_t, cCsvLogm_logs
 
uint64_t m_nextId
 

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 41 of file DeviceLogCSV.h.

Member Function Documentation

◆ CloseAllFiles()

bool cDeviceLogCSV::CloseAllFiles ( )
virtual

Reimplemented from cDeviceLog.

Definition at line 79 of file DeviceLogCSV.cpp.

◆ GetNextLineForFile()

bool cDeviceLogCSV::GetNextLineForFile ( cCsvLog log)
private

Definition at line 184 of file DeviceLogCSV.cpp.

◆ InitDeviceForReading()

void cDeviceLogCSV::InitDeviceForReading ( )
virtual

Reimplemented from cDeviceLog.

Definition at line 42 of file DeviceLogCSV.cpp.

◆ InitDeviceForWriting()

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

Definition at line 34 of file DeviceLogCSV.cpp.

◆ LogFileExtention()

std::string cDeviceLogCSV::LogFileExtention ( )
inlinevirtual

Implements cDeviceLog.

Definition at line 50 of file DeviceLogCSV.h.

◆ OpenNewFile()

bool cDeviceLogCSV::OpenNewFile ( cCsvLog log,
bool  readOnly 
)
private

Definition at line 97 of file DeviceLogCSV.cpp.

◆ ReadData()

p_data_t * cDeviceLogCSV::ReadData ( )
virtual

Implements cDeviceLog.

Definition at line 250 of file DeviceLogCSV.cpp.

◆ ReadDataFromFile()

p_data_t * cDeviceLogCSV::ReadDataFromFile ( cCsvLog log)
private

Definition at line 286 of file DeviceLogCSV.cpp.

◆ SaveData()

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

Reimplemented from cDeviceLog.

Definition at line 209 of file DeviceLogCSV.cpp.

◆ SetSerialNumber()

void cDeviceLogCSV::SetSerialNumber ( uint32_t  serialNumber)
virtual

Implements cDeviceLog.

Definition at line 311 of file DeviceLogCSV.cpp.

Member Data Documentation

◆ m_csv

cDataCSV cDeviceLogCSV::m_csv
private

Definition at line 58 of file DeviceLogCSV.h.

◆ m_currentFileIndex

map<uint32_t, uint32_t> cDeviceLogCSV::m_currentFileIndex
private

Definition at line 60 of file DeviceLogCSV.h.

◆ m_currentFiles

map<uint32_t, vector<string> > cDeviceLogCSV::m_currentFiles
private

Definition at line 59 of file DeviceLogCSV.h.

◆ m_dataBuffer

p_data_t cDeviceLogCSV::m_dataBuffer
private

Definition at line 61 of file DeviceLogCSV.h.

◆ m_logs

map<uint32_t, cCsvLog> cDeviceLogCSV::m_logs
private

Definition at line 57 of file DeviceLogCSV.h.

◆ m_nextId

uint64_t cDeviceLogCSV::m_nextId
private

Definition at line 62 of file DeviceLogCSV.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