Parent class of any message exchanged over the network. More...
#include <msg.h>
Public Member Functions | |
template<> | |
void | add (const string &val) |
void | dump (std::wostream &stream) const |
void | dumpBuffer (std::wostream &stream) const |
Message (uint16 type) | |
void | serialize (Dashel::Stream *stream) |
virtual | ~Message () |
Static Public Member Functions | |
static Message * | receive (Dashel::Stream *stream) |
Public Attributes | |
uint16 | source |
uint16 | type |
Protected Member Functions | |
template<typename T > | |
void | add (const T &val) |
virtual void | deserializeSpecific ()=0 |
virtual void | dumpSpecific (std::wostream &stream) const =0 |
template<typename T > | |
T | get () |
virtual | operator const char * () const |
virtual void | serializeSpecific ()=0 |
Protected Attributes | |
std::vector< uint8 > | rawData |
size_t | readPos |
Aseba::Message::Message | ( | uint16 | type | ) |
Aseba::Message::~Message | ( | ) | [virtual] |
void Aseba::Message::add | ( | const T & | val | ) | [protected] |
void Aseba::Message::add | ( | const string & | val | ) |
virtual void Aseba::Message::deserializeSpecific | ( | ) | [protected, pure virtual] |
Implemented in Aseba::SetVariables, Aseba::GetVariables, Aseba::BreakpointClear, Aseba::BreakpointSet, Aseba::SetBytecode, Aseba::BootloaderPageDataWrite, Aseba::BootloaderWritePage, Aseba::BootloaderReadPage, Aseba::CmdMessage, Aseba::BreakpointSetResult, Aseba::ExecutionStateChanged, Aseba::NodeSpecificError, Aseba::EventExecutionKilled, Aseba::DivisionByZero, Aseba::ArrayAccessOutOfBounds, Aseba::Variables, Aseba::Disconnected, Aseba::NativeFunctionDescription, Aseba::LocalEventDescription, Aseba::NamedVariableDescription, Aseba::Description, Aseba::GetDescription, Aseba::BootloaderAck, Aseba::BootloaderDataRead, Aseba::BootloaderDescription, and Aseba::UserMessage.
void Aseba::Message::dump | ( | std::wostream & | stream | ) | const |
void Aseba::Message::dumpBuffer | ( | std::wostream & | stream | ) | const |
virtual void Aseba::Message::dumpSpecific | ( | std::wostream & | stream | ) | const [protected, pure virtual] |
Implemented in Aseba::SetVariables, Aseba::GetVariables, Aseba::BreakpointClear, Aseba::BreakpointSet, Aseba::SetBytecode, Aseba::BootloaderPageDataWrite, Aseba::BootloaderWritePage, Aseba::BootloaderReadPage, Aseba::CmdMessage, Aseba::BreakpointSetResult, Aseba::ExecutionStateChanged, Aseba::NodeSpecificError, Aseba::EventExecutionKilled, Aseba::DivisionByZero, Aseba::ArrayAccessOutOfBounds, Aseba::Variables, Aseba::Disconnected, Aseba::NativeFunctionDescription, Aseba::LocalEventDescription, Aseba::NamedVariableDescription, Aseba::Description, Aseba::GetDescription, Aseba::BootloaderAck, Aseba::BootloaderDataRead, Aseba::BootloaderDescription, and Aseba::UserMessage.
string Aseba::Message::get | ( | ) | [protected] |
virtual Aseba::Message::operator const char * | ( | ) | const [inline, protected, virtual] |
Reimplemented in Aseba::Sleep, Aseba::Reboot, Aseba::WriteBytecode, Aseba::SetVariables, Aseba::GetVariables, Aseba::BreakpointClearAll, Aseba::BreakpointClear, Aseba::BreakpointSet, Aseba::GetExecutionState, Aseba::Stop, Aseba::Step, Aseba::Pause, Aseba::Run, Aseba::Reset, Aseba::SetBytecode, Aseba::BootloaderPageDataWrite, Aseba::BootloaderWritePage, Aseba::BootloaderReadPage, Aseba::BootloaderReset, Aseba::CmdMessage, Aseba::BreakpointSetResult, Aseba::ExecutionStateChanged, Aseba::NodeSpecificError, Aseba::EventExecutionKilled, Aseba::DivisionByZero, Aseba::ArrayAccessOutOfBounds, Aseba::Variables, Aseba::Disconnected, Aseba::NativeFunctionDescription, Aseba::LocalEventDescription, Aseba::NamedVariableDescription, Aseba::Description, Aseba::GetDescription, Aseba::BootloaderAck, Aseba::BootloaderDataRead, Aseba::BootloaderDescription, and Aseba::UserMessage.
Message * Aseba::Message::receive | ( | Dashel::Stream * | stream | ) | [static] |
void Aseba::Message::serialize | ( | Dashel::Stream * | stream | ) |
virtual void Aseba::Message::serializeSpecific | ( | ) | [protected, pure virtual] |
Implemented in Aseba::SetVariables, Aseba::GetVariables, Aseba::BreakpointClear, Aseba::BreakpointSet, Aseba::SetBytecode, Aseba::BootloaderPageDataWrite, Aseba::BootloaderWritePage, Aseba::BootloaderReadPage, Aseba::CmdMessage, Aseba::BreakpointSetResult, Aseba::ExecutionStateChanged, Aseba::NodeSpecificError, Aseba::EventExecutionKilled, Aseba::DivisionByZero, Aseba::ArrayAccessOutOfBounds, Aseba::Variables, Aseba::Disconnected, Aseba::NativeFunctionDescription, Aseba::LocalEventDescription, Aseba::NamedVariableDescription, Aseba::Description, Aseba::GetDescription, Aseba::BootloaderAck, Aseba::BootloaderDataRead, Aseba::BootloaderDescription, and Aseba::UserMessage.
std::vector<uint8> Aseba::Message::rawData [protected] |
size_t Aseba::Message::readPos [protected] |