ifw-core 7.0.0
 
Loading...
Searching...
No Matches
utils.hpp
Go to the documentation of this file.
1
6
7#ifndef CORE_PROTOCOL_OPEN62541_UTILS_HPP_
8#define CORE_PROTOCOL_OPEN62541_UTILS_HPP_
9
10#ifdef UA_ENABLE_AMALGAMATION
11# include <open62541.h>
12#else
13# include <open62541/types.h>
14#endif
15
17
19
20// Convert a base::Variant into a UA_Variant. Returns false on failure.
21bool SetValue(const base::Variant& container, UA_Variant& value);
22
23// Convert a UA_Variant into a base::Variant. Returns false on failure.
24bool GetValue(const UA_Variant value, base::Variant& container);
25
26} // namespace ifw::core::protocol::opcua
27
28#endif // CORE_PROTOCOL_OPEN62541_UTILS_HPP_
std::variant< bool, int, unsigned int, short, double, std::string, unsigned short, float, int8_t, uint8_t, std::vector< bool >, std::vector< int >, std::vector< unsigned int >, std::vector< short >, std::vector< double >, std::vector< float >, std::vector< std::string > > Variant
Definition iComm.hpp:24
Definition iDataChangeHandler.hpp:27
bool GetValue(const UA_Variant value, base::Variant &container)
Definition utils.cpp:50
bool SetValue(const base::Variant &container, UA_Variant &value)
Definition utils.cpp:16