|
roviz
0.7
Code Documentation of roviz
|
Used to send messages across streams. More...
#include <message.h>


Classes | |
| struct | Entry |
| An entry of a message. More... | |
Public Member Functions | |
| Message (const StreamObject &base) | |
| Message (std::initializer_list< SourceID > sources={}) | |
| const Entry & | entry (const std::string &name) const |
| Get an entry of the message. More... | |
| const Entry & | at (int index) const |
| Get an entry of the message. More... | |
| const Entry & | operator[] (int index) const |
| Get an entry of the message. More... | |
| int | size (void) const |
| Get the size of a message. More... | |
Public Member Functions inherited from StreamObject | |
| SourceID | id (void) const |
| Get the SourceID of the object. More... | |
Static Public Member Functions | |
| static StreamWidget * | initWidget (OutputPrivate *out) |
Protected Attributes | |
| MessagePrivate * | _this |
Protected Attributes inherited from StreamObject | |
| std::shared_ptr< StreamObjectPrivate > | _this_base |
Additional Inherited Members | |
Protected Member Functions inherited from StreamObject | |
| void | initSources (std::initializer_list< SourceID > sources={}) |
Used to send messages across streams.
This class provides an interface to send generic messages across streams. This could be useful for control signals or the like. It consists of a list of entries. Each entry has a name and a value. The type of the value can be either int, double or string.
| const Message::Entry & Message::at | ( | int | index | ) | const |
Get an entry of the message.
| index | The index of the entry |
This function checks the bounds and returns an invalid entry if the index is out of bounds.
| const Message::Entry & Message::entry | ( | const std::string & | name | ) | const |
Get an entry of the message.
| name | The name of the entry |
If name is not found in the message, an invalid entry is returned.

| const Message::Entry & Message::operator[] | ( | int | index | ) | const |
Get an entry of the message.
| index | The index of the entry |
WARNING: This function doesn't check the bounds!
| int Message::size | ( | void | ) | const |
Get the size of a message.
1.8.13