Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
DataDumper Class Reference

#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 std::string binDataToAsciiString (const uint8_t *binary_data, int length)
 
static DataDumperinstance ()
 

Private Member Functions

 DataDumper ()
 
 DataDumper (const DataDumper &)
 
DataDumperoperator= (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
 

Detailed Description

Definition at line 10 of file dataDumper.h.

Constructor & Destructor Documentation

DataDumper::~DataDumper ( )
inline

Definition at line 19 of file dataDumper.h.

DataDumper::DataDumper ( )
inlineprivate

Definition at line 46 of file dataDumper.h.

DataDumper::DataDumper ( const DataDumper )
private

Member Function Documentation

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

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

Parameters
[in]binary_databinary input data
Returns
hex string

Definition at line 108 of file dataDumper.cpp.

int DataDumper::dumpUcharBufferToConsole ( unsigned char *  buffer,
int  bufLen 
)

Definition at line 67 of file dataDumper.cpp.

static DataDumper& DataDumper::instance ( )
inlinestatic

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 13 of file dataDumper.cpp.

int DataDumper::testbed ( )

Definition at line 127 of file dataDumper.cpp.

int DataDumper::writeDataToCsv ( std::string  fileName)

Definition at line 39 of file dataDumper.cpp.

int DataDumper::writeToFileNameWhenBufferIsFull ( std::string  filename)

Definition at line 61 of file dataDumper.cpp.

Member Data Documentation

std::vector<double> DataDumper::dataVec
private

Definition at line 43 of file dataDumper.h.

std::string DataDumper::dumpFileName
private

Definition at line 57 of file dataDumper.h.

std::vector<std::string> DataDumper::infoVec
private

Definition at line 42 of file dataDumper.h.

const int DataDumper::maxFifoSize = 10000
private

Definition at line 40 of file dataDumper.h.

int DataDumper::pushCounter
private

Definition at line 44 of file dataDumper.h.

std::vector<double> DataDumper::timeStampVec
private

Definition at line 41 of file dataDumper.h.


The documentation for this class was generated from the following files:


sick_scan
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Wed May 5 2021 03:05:48