IpbusMock  1.0.0
Library which integrates IPbus use in Phoenix
Loading...
Searching...
No Matches
uaMessage_impl.h
Go to the documentation of this file.
1#pragma once
2
5
8
9template <typename Stream, DataStreamMode::DataStreamMode Mode>
10struct DataStream<Stream, Mode, UaMessage> {
11 // You can declare only the attribute you want
12 static bool data_stream(Stream &ds, UaMessage &msg) {
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 }
20};
Set of parameters to be passed as message.
Definition uaMessage.h:10
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)