#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.
DataDumper::~DataDumper | ( | ) | [inline] |
Definition at line 18 of file dataDumper.h.
DataDumper::DataDumper | ( | ) | [inline, private] |
Definition at line 31 of file dataDumper.h.
DataDumper::DataDumper | ( | const DataDumper & | ) | [private] |
int DataDumper::dumpUcharBufferToConsole | ( | unsigned char * | buffer, |
int | bufLen | ||
) |
Definition at line 65 of file dataDumper.cpp.
static DataDumper& DataDumper::instance | ( | ) | [inline, static] |
Definition at line 13 of file dataDumper.h.
DataDumper& DataDumper::operator= | ( | const DataDumper & | ) | [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.
std::vector<double> DataDumper::dataVec [private] |
Definition at line 29 of file dataDumper.h.
std::string DataDumper::dumpFileName [private] |
Definition at line 42 of file dataDumper.h.
std::vector<std::string> DataDumper::infoVec [private] |
Definition at line 28 of file dataDumper.h.
const int DataDumper::maxFifoSize = 10000 [private] |
Definition at line 26 of file dataDumper.h.
int DataDumper::pushCounter [private] |
Definition at line 30 of file dataDumper.h.
std::vector<double> DataDumper::timeStampVec [private] |
Definition at line 27 of file dataDumper.h.