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

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

#include <Representation.h>

Static Public Member Functions

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

Detailed Description

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

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

Definition at line 73 of file Representation.h.

Member Function Documentation

◆ data_stream()

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

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

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

Definition at line 79 of file Representation.h.

79 {
80 return data.readWriteStream<Stream, Mode>(ds);
81 }
bool readWriteStream(Stream &ds)
Load the current Data with a stream.

References Data::readWriteStream().

Referenced by Function::readWriteStream(), and Message::readWriteStream().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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