Class DataDumper

Class Documentation

class DataDumper

Public Functions

inline ~DataDumper()
int pushData(double timeStamp, std::string info, double val)
int writeDataToCsv(std::string fileName)
int writeToFileNameWhenBufferIsFull(std::string filename)
int dumpUcharBufferToConsole(unsigned char *buffer, int bufLen)
int testbed()

Public Static Functions

static inline DataDumper &instance()
static std::string binDataToAsciiString(const uint8_t *binary_data, int length)

Converts and returns binary data to ascii string with non-printable data represented as “\x<hexvalue>”

Parameters:

binary_data[in] binary input data

Returns:

hex string