rllib
1
|
#include <rlhistorylogger.h>
Public Member Functions | |
rlHistoryLogger (const char *csvName, int maxHoursPerFile, int maxLinesInMemory=100) | |
virtual | ~rlHistoryLogger () |
int | pushLine (const char *text) |
const char * | firstLine () |
const char * | nextLine () |
Public Attributes | |
rlMutex | mutex |
int | debug |
Private Member Functions | |
int | pushLineToMemory (const char *line) |
int | pushLineToFile (const char *line) |
int | openFile () |
Private Attributes | |
rlHistoryLogLine * | first_line |
rlHistoryLogLine * | current_line |
rlTime | time |
rlTime | file_start_time |
rlTime | time_diff |
FILE * | fout |
int | max_hours_per_file |
int | max_lines_in_memory |
int | current_file |
char * | csv_name |
char * | csv_file_name |
This class logs tab separated text including time stamp in 10 csv files + actual values in memory This is for archiveing historical data with time stamp. You should separate the text in pushLine with tab.
Definition at line 35 of file rlhistorylogger.h.
rlHistoryLogger::rlHistoryLogger | ( | const char * | csvName, |
int | maxHoursPerFile, | ||
int | maxLinesInMemory = 100 |
||
) |
Definition at line 20 of file rlhistorylogger.cpp.
|
virtual |
Definition at line 47 of file rlhistorylogger.cpp.
const char * rlHistoryLogger::firstLine | ( | ) |
Definition at line 181 of file rlhistorylogger.cpp.
const char * rlHistoryLogger::nextLine | ( | ) |
Definition at line 188 of file rlhistorylogger.cpp.
|
private |
Definition at line 149 of file rlhistorylogger.cpp.
int rlHistoryLogger::pushLine | ( | const char * | text | ) |
Definition at line 71 of file rlhistorylogger.cpp.
|
private |
Definition at line 132 of file rlhistorylogger.cpp.
|
private |
Definition at line 85 of file rlhistorylogger.cpp.
|
private |
Definition at line 53 of file rlhistorylogger.h.
|
private |
Definition at line 53 of file rlhistorylogger.h.
|
private |
Definition at line 52 of file rlhistorylogger.h.
|
private |
Definition at line 49 of file rlhistorylogger.h.
int rlHistoryLogger::debug |
Definition at line 44 of file rlhistorylogger.h.
|
private |
Definition at line 50 of file rlhistorylogger.h.
|
private |
Definition at line 49 of file rlhistorylogger.h.
|
private |
Definition at line 51 of file rlhistorylogger.h.
|
private |
Definition at line 52 of file rlhistorylogger.h.
|
private |
Definition at line 52 of file rlhistorylogger.h.
rlMutex rlHistoryLogger::mutex |
Definition at line 43 of file rlhistorylogger.h.
|
private |
Definition at line 50 of file rlhistorylogger.h.
|
private |
Definition at line 50 of file rlhistorylogger.h.