#include <ISLogger.h>
|
| cISLogger () |
|
void | CloseAllFiles () |
|
bool | CopyLog (cISLogger &log, const string ×tamp=g_emptyString, const string &outputDir=g_emptyString, eLogType logType=LOGTYPE_DAT, float maxDiskSpacePercent=0.5f, uint32_t maxFileSize=1024 *1024 *5, bool useSubFolderTimestamp=true) |
|
bool | Enabled () |
|
void | EnableLogging (bool enabled) |
|
uint32_t | FileCount (unsigned int device=0) |
|
float | FileSizeMB (unsigned int device=0) |
|
uint32_t | GetDeviceCount () |
|
const dev_info_t * | GetDeviceInfo (unsigned int device=0) |
|
const cLogStats & | GetStats () |
|
time_t | GetTimeoutFlushSeconds () |
|
eLogType | GetType () |
|
bool | InitSave (eLogType logType=LOGTYPE_DAT, const string &directory=g_emptyString, int numDevices=1, float maxDiskSpacePercent=0.5f, uint32_t maxFileSize=1024 *1024 *5, bool useSubFolderTimestamp=true) |
|
bool | InitSaveTimestamp (const string &timeStamp, const string &directory=g_emptyString, const string &subDirectory=g_emptyString, int numDevices=1, eLogType logType=LOGTYPE_DAT, float maxDiskSpacePercent=0.5f, uint32_t maxFileSize=1024 *1024 *5, bool useSubFolderTimestamp=true) |
|
bool | LoadFromDirectory (const string &directory, eLogType logType=LOGTYPE_DAT, vector< string > serials={}) |
|
bool | LogData (unsigned int device, p_data_hdr_t *dataHdr, const uint8_t *dataBuf) |
|
string | LogDirectory () |
|
uint64_t | LogSize (unsigned int device=0) |
|
uint64_t | LogSizeAll () |
|
float | LogSizeAllMB () |
|
float | LogSizeMB (unsigned int device=0) |
|
void | OpenWithSystemApp () |
|
p_data_t * | ReadData (unsigned int device=0) |
|
p_data_t * | ReadNextData (unsigned int &device) |
|
bool | SetDeviceInfo (const dev_info_t *info, unsigned int device=0) |
|
void | SetKmlConfig (bool showPath=true, bool showSample=false, bool showTimeStamp=true, double updatePeriodSec=1.0, bool altClampToGround=true) |
|
void | SetTimeoutFlushSeconds (time_t timeoutFlushSeconds) |
|
string | TimeStamp () |
|
void | Update () |
|
virtual | ~cISLogger () |
|
Definition at line 47 of file ISLogger.h.
◆ eLogType
Enumerator |
---|
LOGTYPE_DAT | |
LOGTYPE_SDAT | |
LOGTYPE_CSV | |
LOGTYPE_KML | |
LOGTYPE_JSON | |
Definition at line 50 of file ISLogger.h.
◆ cISLogger() [1/2]
◆ ~cISLogger()
cISLogger::~cISLogger |
( |
| ) |
|
|
virtual |
◆ cISLogger() [2/2]
cISLogger::cISLogger |
( |
const cISLogger & |
copy | ) |
|
|
private |
◆ Cleanup()
void cISLogger::Cleanup |
( |
| ) |
|
|
private |
◆ CloseAllFiles()
void cISLogger::CloseAllFiles |
( |
| ) |
|
◆ CopyLog()
◆ CreateCurrentTimestamp()
string cISLogger::CreateCurrentTimestamp |
( |
| ) |
|
|
static |
◆ Enabled()
bool cISLogger::Enabled |
( |
| ) |
|
|
inline |
◆ EnableLogging()
void cISLogger::EnableLogging |
( |
bool |
enabled | ) |
|
|
inline |
◆ FileCount()
uint32_t cISLogger::FileCount |
( |
unsigned int |
device = 0 | ) |
|
◆ FileSizeMB()
float cISLogger::FileSizeMB |
( |
unsigned int |
device = 0 | ) |
|
◆ GetDeviceCount()
uint32_t cISLogger::GetDeviceCount |
( |
| ) |
|
|
inline |
◆ GetDeviceInfo()
const dev_info_t * cISLogger::GetDeviceInfo |
( |
unsigned int |
device = 0 | ) |
|
◆ GetStats()
◆ GetTime()
static time_t cISLogger::GetTime |
( |
| ) |
|
|
inlinestaticprivate |
◆ GetTimeoutFlushSeconds()
time_t cISLogger::GetTimeoutFlushSeconds |
( |
| ) |
|
|
inline |
Get the timeout flush parameter in seconds
- Returns
- the timeout flush parameter in seconds
Definition at line 99 of file ISLogger.h.
◆ GetType()
◆ InitDevicesForWriting()
bool cISLogger::InitDevicesForWriting |
( |
int |
numDevices = 1 | ) |
|
|
private |
◆ InitSave()
bool cISLogger::InitSave |
( |
eLogType |
logType = LOGTYPE_DAT , |
|
|
const string & |
directory = g_emptyString , |
|
|
int |
numDevices = 1 , |
|
|
float |
maxDiskSpacePercent = 0.5f , |
|
|
uint32_t |
maxFileSize = 1024 * 1024 * 5 , |
|
|
bool |
useSubFolderTimestamp = true |
|
) |
| |
◆ InitSaveCommon()
bool cISLogger::InitSaveCommon |
( |
eLogType |
logType, |
|
|
const string & |
directory, |
|
|
const string & |
subDirectory, |
|
|
int |
numDevices, |
|
|
float |
maxDiskSpacePercent, |
|
|
uint32_t |
maxFileSize, |
|
|
bool |
useSubFolderTimestamp |
|
) |
| |
|
private |
◆ InitSaveTimestamp()
bool cISLogger::InitSaveTimestamp |
( |
const string & |
timeStamp, |
|
|
const string & |
directory = g_emptyString , |
|
|
const string & |
subDirectory = g_emptyString , |
|
|
int |
numDevices = 1 , |
|
|
eLogType |
logType = LOGTYPE_DAT , |
|
|
float |
maxDiskSpacePercent = 0.5f , |
|
|
uint32_t |
maxFileSize = 1024 * 1024 * 5 , |
|
|
bool |
useSubFolderTimestamp = true |
|
) |
| |
◆ LoadFromDirectory()
bool cISLogger::LoadFromDirectory |
( |
const string & |
directory, |
|
|
eLogType |
logType = LOGTYPE_DAT , |
|
|
vector< string > |
serials = {} |
|
) |
| |
◆ LogData()
bool cISLogger::LogData |
( |
unsigned int |
device, |
|
|
p_data_hdr_t * |
dataHdr, |
|
|
const uint8_t * |
dataBuf |
|
) |
| |
◆ LogDataIsCorrupt()
◆ LogDirectory()
string cISLogger::LogDirectory |
( |
| ) |
|
|
inline |
◆ LogHeaderIsCorrupt()
◆ LogSize()
uint64_t cISLogger::LogSize |
( |
unsigned int |
device = 0 | ) |
|
◆ LogSizeAll()
uint64_t cISLogger::LogSizeAll |
( |
| ) |
|
◆ LogSizeAllMB()
float cISLogger::LogSizeAllMB |
( |
| ) |
|
◆ LogSizeMB()
float cISLogger::LogSizeMB |
( |
unsigned int |
device = 0 | ) |
|
◆ OpenWithSystemApp()
void cISLogger::OpenWithSystemApp |
( |
void |
| ) |
|
◆ ParseLogType()
static eLogType cISLogger::ParseLogType |
( |
const string & |
logTypeString | ) |
|
|
inlinestatic |
◆ ReadAllLogDataIntoMemory()
bool cISLogger::ReadAllLogDataIntoMemory |
( |
const string & |
directory, |
|
|
map< uint32_t, vector< vector< uint8_t >>> & |
data |
|
) |
| |
|
static |
◆ ReadData()
p_data_t * cISLogger::ReadData |
( |
unsigned int |
device = 0 | ) |
|
◆ ReadNextData()
p_data_t * cISLogger::ReadNextData |
( |
unsigned int & |
device | ) |
|
◆ SetDeviceInfo()
bool cISLogger::SetDeviceInfo |
( |
const dev_info_t * |
info, |
|
|
unsigned int |
device = 0 |
|
) |
| |
◆ SetKmlConfig()
void cISLogger::SetKmlConfig |
( |
bool |
showPath = true , |
|
|
bool |
showSample = false , |
|
|
bool |
showTimeStamp = true , |
|
|
double |
updatePeriodSec = 1.0 , |
|
|
bool |
altClampToGround = true |
|
) |
| |
|
inline |
◆ SetTimeoutFlushSeconds()
void cISLogger::SetTimeoutFlushSeconds |
( |
time_t |
timeoutFlushSeconds | ) |
|
|
inline |
Set the timeout flush logger parameter in seconds
- Parameters
-
timeoutFlushSeconds | the timeout flush logger parameter in seconds |
Definition at line 105 of file ISLogger.h.
◆ TimeStamp()
string cISLogger::TimeStamp |
( |
| ) |
|
|
inline |
◆ Update()
void cISLogger::Update |
( |
| ) |
|
◆ g_emptyString
const string cISLogger::g_emptyString |
|
static |
◆ m_altClampToGround
bool cISLogger::m_altClampToGround |
|
private |
◆ m_devices
◆ m_directory
string cISLogger::m_directory |
|
private |
◆ m_enabled
bool cISLogger::m_enabled |
|
private |
◆ m_errorFile
◆ m_iconUpdatePeriodSec
double cISLogger::m_iconUpdatePeriodSec |
|
private |
◆ m_lastCommTime
time_t cISLogger::m_lastCommTime |
|
private |
◆ m_logStats
◆ m_logType
◆ m_maxDiskSpace
uint64_t cISLogger::m_maxDiskSpace |
|
private |
◆ m_maxFileSize
uint32_t cISLogger::m_maxFileSize |
|
private |
◆ m_showPath
bool cISLogger::m_showPath |
|
private |
◆ m_showSample
bool cISLogger::m_showSample |
|
private |
◆ m_showTimeStamp
bool cISLogger::m_showTimeStamp |
|
private |
◆ m_timeoutFlushSeconds
time_t cISLogger::m_timeoutFlushSeconds |
|
private |
◆ m_timeStamp
string cISLogger::m_timeStamp |
|
private |
The documentation for this class was generated from the following files: