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::~DataDumper ( )
inline

Definition at line 19 of file dataDumper.h.

◆ DataDumper() [1/2]

DataDumper::DataDumper ( )
inlineprivate

Definition at line 46 of file dataDumper.h.

◆ DataDumper() [2/2]

DataDumper::DataDumper ( const DataDumper )
private

Member Function Documentation

◆ binDataToAsciiString()

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.

◆ dumpUcharBufferToConsole()

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

Definition at line 67 of file dataDumper.cpp.

◆ instance()

static DataDumper& DataDumper::instance ( )
inlinestatic

Definition at line 13 of file dataDumper.h.

◆ operator=()

DataDumper& DataDumper::operator= ( const DataDumper )
private

◆ pushData()

int DataDumper::pushData ( double  timeStamp,
std::string  info,
double  val 
)

Definition at line 13 of file dataDumper.cpp.

◆ testbed()

int DataDumper::testbed ( )

Definition at line 127 of file dataDumper.cpp.

◆ writeDataToCsv()

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

Definition at line 39 of file dataDumper.cpp.

◆ writeToFileNameWhenBufferIsFull()

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

Definition at line 61 of file dataDumper.cpp.

Member Data Documentation

◆ dataVec

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

Definition at line 43 of file dataDumper.h.

◆ dumpFileName

std::string DataDumper::dumpFileName
private

Definition at line 57 of file dataDumper.h.

◆ infoVec

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

Definition at line 42 of file dataDumper.h.

◆ maxFifoSize

const int DataDumper::maxFifoSize = 10000
private

Definition at line 40 of file dataDumper.h.

◆ pushCounter

int DataDumper::pushCounter
private

Definition at line 44 of file dataDumper.h.

◆ timeStampVec

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 Thu Sep 8 2022 02:30:19