tobicore
7.0.0
|
Data block. More...
#include <tobicore/TCBlock.hpp>
Public Member Functions | |
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) |
Public Attributes | |
TCTimestamp | absolute |
Absolute timestamp. | |
TCTimestamp | relative |
Relative timestamp. |
Static Public Attributes | |
static const int | BlockIdxUnset = -1 |
Unset frame index value. |
Protected Attributes | |
int | _blockidx |
Frame index. |
Data block.
Each communication blocks in the BCI should carry a frame index value (generally set by the acquisition module), an absolute timestamp (i.e. 2011-11-19, 22:00:00.00.00) and a relative timestamp (i.e. 200 seconds).
Definition at line 35 of file TCBlock.hpp.
|
virtual |
Checks if frame index is set (valid)
Definition at line 45 of file TCBlock.cpp.
|
virtual |
Unsets (invalidates) frame index.
If the frame index is unset, it means a particular communication blocks has not been generated within the BCI pipeline. For example, a BCI-controlled robot on the moon will send messages without setting the frame index. A neurofeedback will receive and generate communication blocks that carry both a correct frame index and all the timestamp information.
Definition at line 41 of file TCBlock.cpp.