tobicore
7.0.0
|
Utility class to handle iD messages. More...
#include <tobiid/IDAsClient.hpp>
Public Types | |
enum | { BlockThis = 0, BlockPrev, BlockNext, BlockAll } |
Dequeue search direction (in time) More... |
Public Member Functions | |
IDAsClient (void) | |
Constructor. | |
virtual | ~IDAsClient (void) |
Destructor. | |
virtual void | Enqueue (const IDMessage message, bool updatefidx=false) |
Add an IDMessage to the internal queue. | |
virtual bool | Dequeue (IDMessage *message=NULL, const IDFtype type=IDMessage::FamilyUndef, const IDevent event=IDMessage::EventNull, const int direction=IDAsClient::BlockAll) |
Dequeues an IDMessage, removing it from the internal queue. | |
virtual unsigned int | Size (void) const |
Queue size getter. | |
virtual unsigned int | Clear (void) |
Queue cleaner. | |
virtual void | Dump (void) const |
Queue cleaner. | |
Public Member Functions inherited from TCBlock | |
TCBlock (void) | |
Constructor. | |
virtual int | SetBlockIdx (int fidx=TCBlock::BlockIdxUnset) |
Frame index setter. | |
virtual int | GetBlockIdx (void) const |
Frame index getter. | |
virtual int | IncBlockIdx (void) |
Increments frame index. | |
virtual void | UnsetBlockIdx (void) |
Unsets (invalidates) frame index. | |
virtual bool | IsSetBlockIdx (void) const |
Checks if frame index is set (valid) |
Additional Inherited Members | |
Public Attributes inherited from TCBlock | |
TCTimestamp | absolute |
Absolute timestamp. | |
TCTimestamp | relative |
Relative timestamp. | |
Static Public Attributes inherited from TCBlock | |
static const int | BlockIdxUnset = -1 |
Unset frame index value. | |
Protected Attributes inherited from TCBlock | |
int | _blockidx |
Frame index. |
Utility class to handle iD messages.
This class can be useful to:
Definition at line 38 of file IDAsClient.hpp.
anonymous enum |
Dequeue search direction (in time)
Indentifies the messages generated and sent by BCI modules located before, after or at the same position of the current module. For further details: TOBI iD for dummies.
Definition at line 89 of file IDAsClient.hpp.
|
virtual |
Queue cleaner.
Definition at line 119 of file IDAsClient.cpp.
|
virtual |
Dequeues an IDMessage, removing it from the internal queue.
Definition at line 36 of file IDAsClient.cpp.
|
virtual |
Add an IDMessage to the internal queue.
Definition at line 30 of file IDAsClient.cpp.
|
virtual |
Queue size getter.
Definition at line 115 of file IDAsClient.cpp.