#include <CsvLogger.h>
Public Member Functions | |
void | addColumn (std::string name) |
bool | clear () |
bool | close () |
CSVLogger () | |
bool | isOpen () |
void | newSession () |
bool | open () |
void | setFilepath (std::string path) |
void | setRecording (bool recording) |
void | updateColumn (std::string name, double value) |
bool | writeHeader () |
bool | writeRow () |
virtual | ~CSVLogger () |
Private Types | |
typedef std::map< std::string, double > | columns_type |
Private Attributes | |
unsigned int | currentSession = 1 |
bool | isRecording = false |
columns_type | m_columns |
std::shared_ptr< std::ofstream > | m_file |
std::string | m_filepath |
Definition at line 8 of file CsvLogger.h.
|
private |
Definition at line 10 of file CsvLogger.h.
CSVLogger::CSVLogger | ( | ) |
Definition at line 3 of file CsvLogger.cpp.
|
virtual |
Definition at line 8 of file CsvLogger.cpp.
void CSVLogger::addColumn | ( | std::string | name | ) |
Definition at line 9 of file CsvLogger.cpp.
bool CSVLogger::clear | ( | ) |
Definition at line 79 of file CsvLogger.cpp.
bool CSVLogger::close | ( | ) |
Definition at line 69 of file CsvLogger.cpp.
bool CSVLogger::isOpen | ( | ) |
Definition at line 68 of file CsvLogger.cpp.
void CSVLogger::newSession | ( | ) |
Definition at line 91 of file CsvLogger.cpp.
bool CSVLogger::open | ( | ) |
Definition at line 55 of file CsvLogger.cpp.
|
inline |
Definition at line 22 of file CsvLogger.h.
|
inline |
Definition at line 28 of file CsvLogger.h.
void CSVLogger::updateColumn | ( | std::string | name, |
double | value | ||
) |
Definition at line 10 of file CsvLogger.cpp.
bool CSVLogger::writeHeader | ( | ) |
Definition at line 15 of file CsvLogger.cpp.
bool CSVLogger::writeRow | ( | ) |
Definition at line 33 of file CsvLogger.cpp.
|
private |
Definition at line 36 of file CsvLogger.h.
|
private |
Definition at line 35 of file CsvLogger.h.
|
private |
Definition at line 32 of file CsvLogger.h.
|
private |
Definition at line 33 of file CsvLogger.h.
|
private |
Definition at line 34 of file CsvLogger.h.