Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
File Class Reference

#include <file.hpp>

Public Types

typedef void(* DisconnectFunction) (void *obj)
 
typedef void(* ReadFunction) (void *obj, UINT8 *inputBuffer, UINT32 &numBytes)
 

Public Member Functions

void close ()
 
 File ()
 
std::string getFilename ()
 
bool open (std::string inputFileName, bool beVerbose=false)
 
void setDisconnectCallbackFunction (DisconnectFunction discFunction, void *obj)
 
void setReadCallbackFunction (ReadFunction readFunction, void *obj)
 
 ~File ()
 

Private Member Functions

INT32 readInputData ()
 
void readThreadFunction (bool &endThread, UINT16 &waitTimeMs)
 
void startReadThread ()
 

Private Attributes

bool m_beVerbose
 
DisconnectFunction m_disconnectFunction
 
void * m_disconnectFunctionObjPtr
 
Mutex m_inputFileMutex
 
std::string m_inputFileName
 
std::ifstream m_inputFileStream
 
ReadFunction m_readFunction
 
void * m_readFunctionObjPtr
 
SickThread< File,&File::readThreadFunctionm_readThread
 

Detailed Description

Definition at line 31 of file file.hpp.

Member Typedef Documentation

typedef void(* File::DisconnectFunction) (void *obj)

Definition at line 46 of file file.hpp.

typedef void(* File::ReadFunction) (void *obj, UINT8 *inputBuffer, UINT32 &numBytes)

Definition at line 42 of file file.hpp.

Constructor & Destructor Documentation

File::File ( )

Definition at line 14 of file file.cpp.

File::~File ( void  )

Definition at line 30 of file file.cpp.

Member Function Documentation

void File::close ( )

Definition at line 66 of file file.cpp.

std::string File::getFilename ( )
bool File::open ( std::string  inputFileName,
bool  beVerbose = false 
)

Definition at line 39 of file file.cpp.

INT32 File::readInputData ( )
private

Definition at line 145 of file file.cpp.

void File::readThreadFunction ( bool &  endThread,
UINT16 waitTimeMs 
)
private

Definition at line 103 of file file.cpp.

void File::setDisconnectCallbackFunction ( DisconnectFunction  discFunction,
void *  obj 
)

Definition at line 205 of file file.cpp.

void File::setReadCallbackFunction ( File::ReadFunction  readFunction,
void *  obj 
)

Definition at line 78 of file file.cpp.

void File::startReadThread ( )
private

Definition at line 90 of file file.cpp.

Member Data Documentation

bool File::m_beVerbose
private

Definition at line 51 of file file.hpp.

DisconnectFunction File::m_disconnectFunction
private

Definition at line 68 of file file.hpp.

void* File::m_disconnectFunctionObjPtr
private

Definition at line 69 of file file.hpp.

Mutex File::m_inputFileMutex
private

Definition at line 63 of file file.hpp.

std::string File::m_inputFileName
private

Definition at line 61 of file file.hpp.

std::ifstream File::m_inputFileStream
private

Definition at line 62 of file file.hpp.

ReadFunction File::m_readFunction
private

Definition at line 66 of file file.hpp.

void* File::m_readFunctionObjPtr
private

Definition at line 67 of file file.hpp.

SickThread<File, &File::readThreadFunction> File::m_readThread
private

Definition at line 56 of file file.hpp.


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


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Mon Oct 26 2020 03:27:30