tobicore
7.0.0
|
TOBI iC message. More...
#include <tobiic/ICMessage.hpp>
Public Member Functions | |
ICMessage (void) | |
Constructor. | |
ICMessage (ICMessage *const other) | |
Copy constructor. | |
virtual | ~ICMessage (void) |
Destructor. | |
virtual ICClassifier * | GetClassifier (const std::string &name) const |
Classifier getter. | |
virtual ICClass * | GetClass (const std::string &name, const ICLabel label) const |
Class getter. | |
virtual ICValue | GetValue (const std::string &name, const ICLabel label) const |
Class value getter. | |
virtual void | SetValue (const std::string &name, const ICLabel label, const ICValue value) |
Class value setter. | |
virtual void | Dump (void) const |
Prints internal data. | |
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) |
Public Attributes | |
ICSetClassifier | classifiers |
ICClassifier map. | |
Public Attributes inherited from TCBlock | |
TCTimestamp | absolute |
Absolute timestamp. | |
TCTimestamp | relative |
Relative timestamp. |
Additional Inherited Members | |
Static Public Attributes inherited from TCBlock | |
static const int | BlockIdxUnset = -1 |
Unset frame index value. | |
Protected Attributes inherited from TCBlock | |
int | _blockidx |
Frame index. |
TOBI iC message.
An ICMessage is a set of ICClassifier objects stored in an ICSetClassifier map. Whithin the ICSetClassifier map, each ICClassifier is identified with its name (i.e. "mi_classifier", "errp_classifier"). ICClassifier objects are added/removed directly via ICSetClassifier.
Each ICClassifier is a set of ICClass objects, stored in an ICSetClass map. Whithin the ICSetClass map, each ICClass is identified with its label (i.e. 0x756, 0x562).
Certain methods return a pointer to a classifier or the value of a class belonging to a classifier.
An ICMessage can be serialized/deserialized for IPC. As today the only possible serialization is in XML format via the ICSerializerRapid class. Still, users might derive their own serializers from the ICSerializer interface.
Definition at line 54 of file ICMessage.hpp.
ICMessage::ICMessage | ( | ICMessage *const | other | ) |
Copy constructor.
Uses serialization/deserialization to copy data structrues
Definition at line 31 of file ICMessage.cpp.
Class getter.
Raises an exception if the classifier or the class were not found
Definition at line 47 of file ICMessage.cpp.
|
virtual |
Classifier getter.
Raises an exception if the classifier was not found
Definition at line 43 of file ICMessage.cpp.
Class value getter.
Raises an exception if the classifier or the class were not found
Definition at line 51 of file ICMessage.cpp.
|
virtual |
Class value setter.
Raises an exception if the classifier or the class were not found
Definition at line 55 of file ICMessage.cpp.
ICSetClassifier ICMessage::classifiers |
ICClassifier map.
Set of ICClassifier objects
Definition at line 120 of file ICMessage.hpp.