Classes | Public Member Functions | Protected Member Functions | Private Attributes
CallbackHandler Class Reference

Callback handler for incoming data packets from the device. More...

List of all members.

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

Detailed Description

Callback handler for incoming data packets from the device.

Parameters:
maxBufferSize

Definition at line 54 of file main.cpp.


Constructor & Destructor Documentation

CallbackHandler::CallbackHandler ( size_t  maxBufferSize = 5) [inline]

Definition at line 57 of file main.cpp.

virtual CallbackHandler::~CallbackHandler ( ) throw () [inline, virtual]

Definition at line 76 of file main.cpp.


Member Function Documentation

XsDataPacket CallbackHandler::getNextPacket ( ) [inline]

Definition at line 80 of file main.cpp.

virtual void CallbackHandler::onDataAvailable ( XsDevice *  ,
const XsDataPacket *  packet 
) [inline, protected, virtual]

Definition at line 91 of file main.cpp.

bool CallbackHandler::packetAvailable ( ) const [inline]

Definition at line 79 of file main.cpp.


Member Data Documentation

pthread_mutex_t CallbackHandler::m_CriticalSection [mutable, private]

Definition at line 107 of file main.cpp.

Definition at line 120 of file main.cpp.

Definition at line 121 of file main.cpp.

std::list<XsDataPacket> CallbackHandler::m_packetBuffer [private]

Definition at line 122 of file main.cpp.


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


mtig_driver
Author(s): Lucas Casanova Nogueira
autogenerated on Thu Jun 6 2019 18:25:27