Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
Aseba::Message Class Reference

Parent class of any message exchanged over the network. More...

#include <msg.h>

Inheritance diagram for Aseba::Message:
Inheritance graph
[legend]

List of all members.

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 Messagereceive (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 >
get ()
virtual operator const char * () const
virtual void serializeSpecific ()=0

Protected Attributes

std::vector< uint8rawData
size_t readPos

Detailed Description

Parent class of any message exchanged over the network.

Definition at line 46 of file msg.h.


Constructor & Destructor Documentation

Definition at line 126 of file msg.cpp.

Aseba::Message::~Message ( ) [virtual]

Definition at line 133 of file msg.cpp.


Member Function Documentation

template<typename T >
void Aseba::Message::add ( const T &  val) [protected]

Definition at line 214 of file msg.cpp.

template<>
void Aseba::Message::add ( const string &  val)

Definition at line 226 of file msg.cpp.

virtual void Aseba::Message::deserializeSpecific ( ) [protected, pure virtual]
void Aseba::Message::dump ( std::wostream &  stream) const

Definition at line 198 of file msg.cpp.

void Aseba::Message::dumpBuffer ( std::wostream &  stream) const

Definition at line 206 of file msg.cpp.

virtual void Aseba::Message::dumpSpecific ( std::wostream &  stream) const [protected, pure virtual]
string Aseba::Message::get ( ) [protected]

Definition at line 243 of file msg.cpp.

virtual Aseba::Message::operator const char * ( ) const [inline, protected, virtual]

Definition at line 162 of file msg.cpp.

Definition at line 138 of file msg.cpp.

virtual void Aseba::Message::serializeSpecific ( ) [protected, pure virtual]

Member Data Documentation

std::vector<uint8> Aseba::Message::rawData [protected]

Definition at line 72 of file msg.h.

size_t Aseba::Message::readPos [protected]

Definition at line 73 of file msg.h.

Definition at line 49 of file msg.h.

Definition at line 50 of file msg.h.


The documentation for this class was generated from the following files:


aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:39