PhoenixSwarm  3.5.0
Library to ease communication between daemons
Loading...
Searching...
No Matches
DataStream< Stream, Mode, Message > Struct Template Reference

Generic Message serialisation/deserialisation, load/save and size function for PhoenixDataStream. More...

#include <Representation.h>

Static Public Member Functions

static bool data_stream (Stream &ds, Message &data)
 Generic function to load/save/serialise/deserialise Message.
 

Detailed Description

template<typename Stream, DataStreamMode::DataStreamMode Mode>
struct DataStream< Stream, Mode, Message >

Generic Message serialisation/deserialisation, load/save and size function for PhoenixDataStream.

Definition at line 237 of file Representation.h.

Member Function Documentation

◆ data_stream()

template<typename Stream, DataStreamMode::DataStreamMode Mode>
static bool DataStream< Stream, Mode, Message >::data_stream ( Stream & ds,
Message & data )
inlinestatic

Generic function to load/save/serialise/deserialise Message.

Parameters
[out]ds: stream to be used
data: Message to be used
Returns
true on success, false otherwise

Definition at line 243 of file Representation.h.

243 {
244 return data.readWriteStream<Stream, Mode>(ds);
245 }
bool readWriteStream(Stream &ds)
Load the current Message with a stream.

References Message::readWriteStream().

+ Here is the call graph for this function:

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