Static Public Member Functions
mm_messages::Message< T > Struct Template Reference

Template parent and default pass-through encoding/decoding. More...

#include <message.hpp>

List of all members.

Static Public Member Functions

static T decode (const unsigned char *buffer, const unsigned int &size)
static void encode (const T &msg, ByteArray &buffer)

Detailed Description

template<typename T>
struct mm_messages::Message< T >

Template parent and default pass-through encoding/decoding.

Implement serialisations in specialisations of this class.

Template Parameters:
T: the data type (e.g. std::string)

Definition at line 46 of file message.hpp.


Member Function Documentation

template<typename T >
static T mm_messages::Message< T >::decode ( const unsigned char *  buffer,
const unsigned int &  size 
) [inline, static]

Definition at line 50 of file message.hpp.

template<typename T >
static void mm_messages::Message< T >::encode ( const T &  msg,
ByteArray buffer 
) [inline, static]

Definition at line 47 of file message.hpp.


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


mm_messages
Author(s): Daniel Stonier
autogenerated on Thu Jun 6 2019 21:13:16