IpbusMock  1.0.0
Library which integrates IPbus use in Phoenix
Loading...
Searching...
No Matches
UaMessage Class Reference

Set of parameters to be passed as message. More...

#include <uaMessage.h>

Public Member Functions

size_t size () const
 
 UaMessage ()
 
 UaMessage (const std::string &connectionId, const std::string &nodeId, const std::vector< uint32_t > *value)
 
 UaMessage (const std::string connectionId, const std::string nodeId)
 
 UaMessage (const std::string connectionId, const std::string nodeId, uint32_t sizeValue)
 

Public Attributes

std::string connectionId
 Constructor.
 
DataStreamMsg dataStreamMsg
 
std::string nodeId
 
uint32_t sizeValue
 
std::unique_ptr< std::vector< uint32_t > > value
 

Detailed Description

Set of parameters to be passed as message.

Definition at line 10 of file uaMessage.h.

Constructor & Destructor Documentation

◆ UaMessage() [1/4]

UaMessage::UaMessage ( )
inline

Definition at line 20 of file uaMessage.h.

20 : connectionId(""), nodeId("") {
21 this->sizeValue = 1;
22 this->value = std::make_unique<std::vector<uint32_t>>();
23 }
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
uint32_t sizeValue
Definition uaMessage.h:16

References connectionId, and nodeId.

◆ UaMessage() [2/4]

UaMessage::UaMessage ( const std::string connectionId,
const std::string nodeId )
inline

Definition at line 25 of file uaMessage.h.

27 this->sizeValue = 1;
28 this->value = std::make_unique<std::vector<uint32_t>>();
29 }

References connectionId, and nodeId.

◆ UaMessage() [3/4]

UaMessage::UaMessage ( const std::string connectionId,
const std::string nodeId,
uint32_t sizeValue )
inline

Definition at line 31 of file uaMessage.h.

34 this->sizeValue = sizeValue;
35 this->value = std::make_unique<std::vector<uint32_t>>();
36 }

References connectionId, nodeId, and sizeValue.

◆ UaMessage() [4/4]

UaMessage::UaMessage ( const std::string & connectionId,
const std::string & nodeId,
const std::vector< uint32_t > * value )
inline

Definition at line 38 of file uaMessage.h.

41 this->sizeValue = value->size();
42 this->value = std::make_unique<std::vector<uint32_t>>(*value);
43 }

References connectionId, nodeId, and value.

Member Function Documentation

◆ size()

size_t UaMessage::size ( ) const
inline

Definition at line 45 of file uaMessage.h.

45{ return data_size(*this); }

Referenced by PIpBusSocket::recvData().

+ Here is the caller graph for this function:

Member Data Documentation

◆ connectionId

std::string UaMessage::connectionId

◆ dataStreamMsg

DataStreamMsg UaMessage::dataStreamMsg

Definition at line 18 of file uaMessage.h.

Referenced by PIpBusSocket::recvData(), and PIpBusSocket::sendData().

◆ nodeId

◆ sizeValue

uint32_t UaMessage::sizeValue

Definition at line 16 of file uaMessage.h.

Referenced by PIpBusSocket::recvMsg(), and UaMessage().

◆ value

std::unique_ptr<std::vector<uint32_t> > UaMessage::value

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