#include <dataDumper.h>
Public Member Functions | |
int | dumpUcharBufferToConsole (unsigned char *buffer, int bufLen) |
int | pushData (double timeStamp, std::string info, double val) |
int | testbed () |
int | writeDataToCsv (std::string fileName) |
int | writeToFileNameWhenBufferIsFull (std::string filename) |
~DataDumper () | |
Static Public Member Functions | |
static DataDumper & | instance () |
Private Member Functions | |
DataDumper () | |
DataDumper (const DataDumper &) | |
DataDumper & | operator= (const DataDumper &) |
Private Attributes | |
std::vector< double > | dataVec |
std::string | dumpFileName |
std::vector< std::string > | infoVec |
const int | maxFifoSize = 10000 |
int | pushCounter |
std::vector< double > | timeStampVec |
Definition at line 10 of file dataDumper.h.
|
inline |
Definition at line 18 of file dataDumper.h.
|
inlineprivate |
Definition at line 31 of file dataDumper.h.
|
private |
int DataDumper::dumpUcharBufferToConsole | ( | unsigned char * | buffer, |
int | bufLen | ||
) |
Definition at line 65 of file dataDumper.cpp.
|
inlinestatic |
Definition at line 13 of file dataDumper.h.
|
private |
int DataDumper::pushData | ( | double | timeStamp, |
std::string | info, | ||
double | val | ||
) |
Definition at line 11 of file dataDumper.cpp.
int DataDumper::testbed | ( | ) |
Definition at line 99 of file dataDumper.cpp.
int DataDumper::writeDataToCsv | ( | std::string | fileName | ) |
Definition at line 37 of file dataDumper.cpp.
int DataDumper::writeToFileNameWhenBufferIsFull | ( | std::string | filename | ) |
Definition at line 59 of file dataDumper.cpp.
|
private |
Definition at line 29 of file dataDumper.h.
|
private |
Definition at line 42 of file dataDumper.h.
|
private |
Definition at line 28 of file dataDumper.h.
|
private |
Definition at line 26 of file dataDumper.h.
|
private |
Definition at line 30 of file dataDumper.h.
|
private |
Definition at line 27 of file dataDumper.h.