Callback handler for incoming data packets from the device. More...
Classes | |
struct | Locker |
Public Member Functions | |
CallbackHandler (size_t maxBufferSize=5) | |
XsDataPacket | getNextPacket () |
bool | packetAvailable () const |
virtual | ~CallbackHandler () throw () |
Protected Member Functions | |
virtual void | onDataAvailable (XsDevice *, const XsDataPacket *packet) |
Private Attributes | |
pthread_mutex_t | m_CriticalSection |
size_t | m_maxNumberOfPacketsInBuffer |
size_t | m_numberOfPacketsInBuffer |
std::list< XsDataPacket > | m_packetBuffer |
Callback handler for incoming data packets from the device.
maxBufferSize |
CallbackHandler::CallbackHandler | ( | size_t | maxBufferSize = 5 | ) | [inline] |
virtual CallbackHandler::~CallbackHandler | ( | ) | throw () [inline, virtual] |
XsDataPacket CallbackHandler::getNextPacket | ( | ) | [inline] |
virtual void CallbackHandler::onDataAvailable | ( | XsDevice * | , |
const XsDataPacket * | packet | ||
) | [inline, protected, virtual] |
bool CallbackHandler::packetAvailable | ( | ) | const [inline] |
pthread_mutex_t CallbackHandler::m_CriticalSection [mutable, private] |
size_t CallbackHandler::m_maxNumberOfPacketsInBuffer [private] |
size_t CallbackHandler::m_numberOfPacketsInBuffer [private] |
std::list<XsDataPacket> CallbackHandler::m_packetBuffer [private] |