Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
cDeviceLog Class Referenceabstract

#include <DeviceLog.h>

Inheritance diagram for cDeviceLog:
Inheritance graph
[legend]

Public Member Functions

 cDeviceLog ()
 
virtual bool CloseAllFiles ()
 
uint32_t FileCount ()
 
uint64_t FileSize ()
 
virtual void Flush ()
 
const dev_info_tGetDeviceInfo ()
 
virtual void InitDeviceForReading ()
 
virtual void InitDeviceForWriting (int pHandle, string timestamp, string directory, uint64_t maxDiskSpace, uint32_t maxFileSize)
 
virtual string LogFileExtention ()=0
 
uint64_t LogSize ()
 
virtual bool OpenWithSystemApp ()
 
virtual p_data_tReadData ()=0
 
virtual bool SaveData (p_data_hdr_t *dataHdr, const uint8_t *dataBuf)
 
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)
 
virtual void SetSerialNumber (uint32_t serialNumber)=0
 
bool SetupReadInfo (const string &directory, const string &deviceName, const string &timeStamp)
 
virtual ~cDeviceLog ()
 

Protected Member Functions

string GetNewFileName (uint32_t serialNumber, uint32_t fileCount, const char *suffix)
 
void OnReadData (p_data_t *data)
 
bool OpenNewSaveFile ()
 
bool OpenNextReadFile ()
 

Protected Attributes

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
 

Private Attributes

cLogStatsm_logStats
 

Detailed Description

Definition at line 35 of file DeviceLog.h.

Constructor & Destructor Documentation

◆ cDeviceLog()

cDeviceLog::cDeviceLog ( )

Definition at line 34 of file DeviceLog.cpp.

◆ ~cDeviceLog()

cDeviceLog::~cDeviceLog ( )
virtual

Definition at line 49 of file DeviceLog.cpp.

Member Function Documentation

◆ CloseAllFiles()

bool cDeviceLog::CloseAllFiles ( )
virtual

Reimplemented in cDeviceLogCSV, cDeviceLogKML, cDeviceLogSerial, cDeviceLogSorted, and cDeviceLogJSON.

Definition at line 77 of file DeviceLog.cpp.

◆ FileCount()

uint32_t cDeviceLog::FileCount ( )
inline

Definition at line 54 of file DeviceLog.h.

◆ FileSize()

uint64_t cDeviceLog::FileSize ( )
inline

Definition at line 52 of file DeviceLog.h.

◆ Flush()

virtual void cDeviceLog::Flush ( )
inlinevirtual

Reimplemented in cDeviceLogSerial.

Definition at line 48 of file DeviceLog.h.

◆ GetDeviceInfo()

const dev_info_t* cDeviceLog::GetDeviceInfo ( )
inline

Definition at line 51 of file DeviceLog.h.

◆ GetNewFileName()

string cDeviceLog::GetNewFileName ( uint32_t  serialNumber,
uint32_t  fileCount,
const char *  suffix 
)
protected

Definition at line 228 of file DeviceLog.cpp.

◆ InitDeviceForReading()

void cDeviceLog::InitDeviceForReading ( )
virtual

Reimplemented in cDeviceLogCSV, and cDeviceLogSorted.

Definition at line 69 of file DeviceLog.cpp.

◆ InitDeviceForWriting()

void cDeviceLog::InitDeviceForWriting ( int  pHandle,
string  timestamp,
string  directory,
uint64_t  maxDiskSpace,
uint32_t  maxFileSize 
)
virtual

Definition at line 57 of file DeviceLog.cpp.

◆ LogFileExtention()

virtual string cDeviceLog::LogFileExtention ( )
pure virtual

◆ LogSize()

uint64_t cDeviceLog::LogSize ( )
inline

Definition at line 53 of file DeviceLog.h.

◆ OnReadData()

void cDeviceLog::OnReadData ( p_data_t data)
protected

Definition at line 267 of file DeviceLog.cpp.

◆ OpenNewSaveFile()

bool cDeviceLog::OpenNewSaveFile ( )
protected

Definition at line 137 of file DeviceLog.cpp.

◆ OpenNextReadFile()

bool cDeviceLog::OpenNextReadFile ( )
protected

Definition at line 198 of file DeviceLog.cpp.

◆ OpenWithSystemApp()

bool cDeviceLog::OpenWithSystemApp ( void  )
virtual

Reimplemented in cDeviceLogKML.

Definition at line 91 of file DeviceLog.cpp.

◆ ReadData()

virtual p_data_t* cDeviceLog::ReadData ( )
pure virtual

◆ SaveData()

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

Reimplemented in cDeviceLogKML, cDeviceLogCSV, cDeviceLogSerial, cDeviceLogSorted, and cDeviceLogJSON.

Definition at line 106 of file DeviceLog.cpp.

◆ SetDeviceInfo()

void cDeviceLog::SetDeviceInfo ( const dev_info_t info)

Definition at line 256 of file DeviceLog.cpp.

◆ SetKmlConfig()

void cDeviceLog::SetKmlConfig ( bool  showTracks = true,
bool  showPoints = true,
bool  showPointTimestamps = true,
double  pointUpdatePeriodSec = 1.0,
bool  altClampToGround = true 
)
inline

Definition at line 55 of file DeviceLog.h.

◆ SetSerialNumber()

virtual void cDeviceLog::SetSerialNumber ( uint32_t  serialNumber)
pure virtual

◆ SetupReadInfo()

bool cDeviceLog::SetupReadInfo ( const string &  directory,
const string &  deviceName,
const string &  timeStamp 
)

Definition at line 116 of file DeviceLog.cpp.

Member Data Documentation

◆ m_altClampToGround

bool cDeviceLog::m_altClampToGround
protected

Definition at line 82 of file DeviceLog.h.

◆ m_devInfo

dev_info_t cDeviceLog::m_devInfo
protected

Definition at line 75 of file DeviceLog.h.

◆ m_directory

string cDeviceLog::m_directory
protected

Definition at line 72 of file DeviceLog.h.

◆ m_fileCount

uint32_t cDeviceLog::m_fileCount
protected

Definition at line 79 of file DeviceLog.h.

◆ m_fileName

string cDeviceLog::m_fileName
protected

Definition at line 74 of file DeviceLog.h.

◆ m_fileNames

vector<string> cDeviceLog::m_fileNames
protected

Definition at line 70 of file DeviceLog.h.

◆ m_fileSize

uint64_t cDeviceLog::m_fileSize
protected

Definition at line 77 of file DeviceLog.h.

◆ m_logSize

uint64_t cDeviceLog::m_logSize
protected

Definition at line 78 of file DeviceLog.h.

◆ m_logStats

cLogStats* cDeviceLog::m_logStats
private

Definition at line 89 of file DeviceLog.h.

◆ m_maxDiskSpace

uint64_t cDeviceLog::m_maxDiskSpace
protected

Definition at line 80 of file DeviceLog.h.

◆ m_maxFileSize

uint32_t cDeviceLog::m_maxFileSize
protected

Definition at line 81 of file DeviceLog.h.

◆ m_pFile

cISLogFileBase* cDeviceLog::m_pFile
protected

Definition at line 71 of file DeviceLog.h.

◆ m_pHandle

int cDeviceLog::m_pHandle
protected

Definition at line 76 of file DeviceLog.h.

◆ m_pointUpdatePeriodSec

double cDeviceLog::m_pointUpdatePeriodSec
protected

Definition at line 86 of file DeviceLog.h.

◆ m_showPoints

bool cDeviceLog::m_showPoints
protected

Definition at line 84 of file DeviceLog.h.

◆ m_showPointTimestamps

bool cDeviceLog::m_showPointTimestamps
protected

Definition at line 85 of file DeviceLog.h.

◆ m_showTracks

bool cDeviceLog::m_showTracks
protected

Definition at line 83 of file DeviceLog.h.

◆ m_timeStamp

string cDeviceLog::m_timeStamp
protected

Definition at line 73 of file DeviceLog.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