Public Member Functions | Public Attributes | Protected Member Functions
packet_handler::payloadBase Class Reference

Provides base class for payloads. More...

#include <payload_base.hpp>

Inheritance diagram for packet_handler::payloadBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool deserialise (ecl::PushAndPop< unsigned char > &byteStream)=0
 payloadBase ()
virtual bool serialise (ecl::PushAndPop< unsigned char > &byteStream)=0
virtual ~payloadBase ()

Public Attributes

bool yes

Protected Member Functions

template<typename T >
void buildBytes (const T &V, ecl::PushAndPop< unsigned char > &buffer)
template<>
void buildBytes (const float &V, ecl::PushAndPop< unsigned char > &buffer)
template<typename T >
void buildVariable (T &V, ecl::PushAndPop< unsigned char > &buffer)
template<>
void buildVariable (float &V, ecl::PushAndPop< unsigned char > &buffer)

Detailed Description

Provides base class for payloads.

Definition at line 38 of file payload_base.hpp.


Constructor & Destructor Documentation

Definition at line 51 of file payload_base.hpp.

virtual packet_handler::payloadBase::~payloadBase ( ) [inline, virtual]

Definition at line 52 of file payload_base.hpp.


Member Function Documentation

template<typename T >
void packet_handler::payloadBase::buildBytes ( const T &  V,
ecl::PushAndPop< unsigned char > &  buffer 
) [inline, protected]

Definition at line 79 of file payload_base.hpp.

template<>
void packet_handler::payloadBase::buildBytes ( const float &  V,
ecl::PushAndPop< unsigned char > &  buffer 
) [inline, protected]

Definition at line 113 of file payload_base.hpp.

template<typename T >
void packet_handler::payloadBase::buildVariable ( T &  V,
ecl::PushAndPop< unsigned char > &  buffer 
) [inline, protected]

Definition at line 65 of file payload_base.hpp.

template<>
void packet_handler::payloadBase::buildVariable ( float &  V,
ecl::PushAndPop< unsigned char > &  buffer 
) [inline, protected]

Need to be very careful with this - it will only work across platforms if they happen to be doing reinterpret_cast with the same float standard.

Parameters:
V
buffer

Definition at line 96 of file payload_base.hpp.

virtual bool packet_handler::payloadBase::deserialise ( ecl::PushAndPop< unsigned char > &  byteStream) [pure virtual]
virtual bool packet_handler::payloadBase::serialise ( ecl::PushAndPop< unsigned char > &  byteStream) [pure virtual]

Member Data Documentation

this is simple magic to write the flag, when we get the packet from the host or when we want to send the data

Definition at line 46 of file payload_base.hpp.


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


kobuki_driver
Author(s): Daniel Stonier , Younghun Ju , Jorge Santos Simon
autogenerated on Mon Oct 6 2014 01:31:10