#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::readThreadFunction > | m_readThread |
typedef void(* File::DisconnectFunction)(void *obj) |
typedef void(* File::ReadFunction)(void *obj, UINT8 *inputBuffer, UINT32 &numBytes) |
File::File | ( | ) |
File::~File | ( | void | ) |
void File::close | ( | ) |
std::string File::getFilename | ( | ) |
bool File::open | ( | std::string | inputFileName, |
bool | beVerbose = false |
||
) |
INT32 File::readInputData | ( | ) | [private] |
void File::readThreadFunction | ( | bool & | endThread, |
UINT16 & | waitTimeMs | ||
) | [private] |
void File::setDisconnectCallbackFunction | ( | DisconnectFunction | discFunction, |
void * | obj | ||
) |
void File::setReadCallbackFunction | ( | File::ReadFunction | readFunction, |
void * | obj | ||
) |
void File::startReadThread | ( | ) | [private] |
bool File::m_beVerbose [private] |
DisconnectFunction File::m_disconnectFunction [private] |
void* File::m_disconnectFunctionObjPtr [private] |
Mutex File::m_inputFileMutex [private] |
std::string File::m_inputFileName [private] |
std::ifstream File::m_inputFileStream [private] |
ReadFunction File::m_readFunction [private] |
void* File::m_readFunctionObjPtr [private] |
SickThread<File, &File::readThreadFunction> File::m_readThread [private] |