IpbusMock  1.0.0
Library which integrates IPbus use in Phoenix
Loading...
Searching...
No Matches
DataStream< Stream, Mode, UaMessage > Struct Template Reference

#include <uaMessage_impl.h>

Static Public Member Functions

static bool data_stream (Stream &ds, UaMessage &msg)
 

Detailed Description

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

Function to load/save serialise and deserialise a UaMessage in message/stream/file

Parameters
[out]ds: Stream to be used (message, File, etc)
Returns
true on success, false otherwise

Definition at line 10 of file uaMessage_impl.h.

Member Function Documentation

◆ data_stream()

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

Definition at line 12 of file uaMessage_impl.h.

12 {
13 bool b = DataStream<Stream, Mode, std::string>::data_stream(
14 ds, msg.connectionId);
15 b &= DataStream<Stream, Mode, std::string>::data_stream(ds, msg.nodeId);
16 b &= DataStream<Stream, Mode, std::vector<uint32_t>>::data_stream(
17 ds, *msg.value.get());
18 return b;
19 }
std::string nodeId
Definition uaMessage.h:15
std::string connectionId
Constructor.
Definition uaMessage.h:14
std::unique_ptr< std::vector< uint32_t > > value
Definition uaMessage.h:17
static bool data_stream(Stream &ds, UaMessage &msg)

References UaMessage::connectionId, data_stream(), UaMessage::nodeId, and UaMessage::value.

Referenced by data_stream().

+ 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: