#include <Message.h>
Public Types | |
typedef std::vector< Variable > | VariableList |
Public Member Functions | |
Message (const String &name) | |
Construct a named message. | |
Message (const String &name, const Odyssey::Variable &arg) | |
Constructs a named message with the given arguement. | |
Message (const Message &rhs) | |
Copies the given message's content to this message. | |
void | copy (const Message &rhs) |
Forces a deep copy of all of the data within the given message to this one. | |
bool | isEmpty () const |
Returns true of the message has no arguments. | |
size_t | getArgumentCount () const |
Returns the number of arguments in this message. | |
const String & | getName () const |
Returns the message name. | |
uint32 | getID () const |
Returns the unique message ID for this message. | |
Message & | argument (const Odyssey::Variable &arg) |
Adds an argument to the argument list. | |
Message & | argument (size_t index, const Odyssey::Variable &arg) |
Sets an argument at a given index. | |
void | setArguments (const VariableList &args) |
Sets the argument list for this message. | |
void | setArgument (size_t index, const Odyssey::Variable &v) |
Sets the argument at the given index. | |
Odyssey::Variable | getArgument (size_t index) const |
Returns the argument at the given index. | |
void | removeArgument (size_t index) const |
Removes the indexed argument. | |
void | clearArguments () |
Clears all of the arguments for this message. | |
Variable & | operator[] (size_t index) |
Operator access to arguments. | |
const Variable & | operator[] (size_t index) const |
Operator access to arguments. | |
Message & | operator= (const Message &rhs) |
Share data from the given message with this message. | |
Classes | |
struct | MessageBase |
|
|
|
Construct a named message.
|
|
Constructs a named message with the given arguement.
|
|
Copies the given message's content to this message.
|
|
Sets an argument at a given index. This is the same function as setArgument, but it is designed for chaining calls for simpler message declarations.
|
|
Adds an argument to the argument list. This function adds a new argument to the end of the argument list for this message. This is useful for chaining arguments in a message definition.
|
|
Clears all of the arguments for this message.
|
|
Forces a deep copy of all of the data within the given message to this one.
|
|
Returns the argument at the given index. Returns the argument at the given index. If no argument can be found an empty Variable is returned.
|
|
Returns the number of arguments in this message.
|
|
Returns the unique message ID for this message.
|
|
Returns the message name.
|
|
Returns true of the message has no arguments.
|
|
Share data from the given message with this message.
|
|
Operator access to arguments.
|
|
Operator access to arguments.
|
|
Removes the indexed argument.
|
|
Sets the argument at the given index.
|
|
Sets the argument list for this message. This function replaces the argument list for this message with the given argument list.
|