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

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

Definition at line 33 of file main.cpp.


Constructor & Destructor Documentation

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

Definition at line 36 of file main.cpp.

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

Definition at line 55 of file main.cpp.


Member Function Documentation

XsDataPacket CallbackHandler::getNextPacket ( ) [inline]

Definition at line 59 of file main.cpp.

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

Definition at line 70 of file main.cpp.

bool CallbackHandler::packetAvailable ( ) const [inline]

Definition at line 58 of file main.cpp.


Member Data Documentation

pthread_mutex_t CallbackHandler::m_CriticalSection [mutable, private]

Definition at line 86 of file main.cpp.

Definition at line 99 of file main.cpp.

Definition at line 100 of file main.cpp.

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

Definition at line 101 of file main.cpp.


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


receive_xsens
Author(s): Ji Zhang, Silvio Maeta
autogenerated on Sat Jun 8 2019 19:32:50