open62541pp 0.19.0
C++ wrapper of open62541
|
#include <types.hpp>
UA_NodeId wrapper class.
Public Member Functions | |
NodeId (NamespaceIndex namespaceIndex, uint32_t identifier) noexcept | |
NodeId (NamespaceIndex namespaceIndex, std::string_view identifier) | |
NodeId (NamespaceIndex namespaceIndex, Guid identifier) noexcept | |
NodeId (NamespaceIndex namespaceIndex, ByteString identifier) noexcept | |
template<typename T , typename = std::enable_if_t<detail::IsNodeIdEnum<T>::value>> | |
NodeId (T identifier) noexcept | |
bool | isNull () const noexcept |
uint32_t | hash () const noexcept |
NamespaceIndex | namespaceIndex () const noexcept |
NodeIdType | identifierType () const noexcept |
template<typename T > | |
T * | identifierIf () noexcept |
template<typename T > | |
const T * | identifierIf () const noexcept |
template<typename T > | |
T & | identifier () |
template<typename T > | |
const T & | identifier () const |
String | toString () const |
constexpr | Wrapper () noexcept=default |
constexpr | Wrapper (const Wrapper &other) |
constexpr | Wrapper (const T &native) |
constexpr | Wrapper (Wrapper &&other) noexcept |
constexpr | Wrapper (T &&native) noexcept |
![]() | |
constexpr | Wrapper () noexcept=default |
constexpr | Wrapper (const Wrapper &other) |
constexpr | Wrapper (const T &native) |
constexpr | Wrapper (Wrapper &&other) noexcept |
constexpr | Wrapper (T &&native) noexcept |
~Wrapper () noexcept=default | |
constexpr Wrapper & | operator= (const Wrapper &other) |
constexpr Wrapper & | operator= (const T &native) |
constexpr Wrapper & | operator= (Wrapper &&other) noexcept |
constexpr Wrapper & | operator= (T &&native) noexcept |
constexpr | operator T& () noexcept |
constexpr | operator const T & () const noexcept |
constexpr T * | operator-> () noexcept |
constexpr const T * | operator-> () const noexcept |
constexpr T * | handle () noexcept |
constexpr const T * | handle () const noexcept |
constexpr void | swap (Wrapper &other) noexcept |
constexpr void | swap (T &native) noexcept |
Static Public Member Functions | |
static NodeId | parse (std::string_view str) |
Related Symbols | |
(Note that these are not member symbols.) | |
bool | operator== (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator!= (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator< (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator> (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator<= (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator>= (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
![]() | |
template<typename T > | |
constexpr T * | asWrapper (typename T::NativeType *native) noexcept |
template<typename T > | |
constexpr const T * | asWrapper (const typename T::NativeType *native) noexcept |
template<typename T > | |
constexpr T & | asWrapper (typename T::NativeType &native) noexcept |
template<typename T > | |
constexpr const T & | asWrapper (const typename T::NativeType &native) noexcept |
template<typename T > | |
constexpr T::NativeType * | asNative (T *wrapper) noexcept |
template<typename T > | |
constexpr const T::NativeType * | asNative (const T *wrapper) noexcept |
template<typename T > | |
constexpr T::NativeType & | asNative (T &wrapper) noexcept |
template<typename T > | |
constexpr const T::NativeType & | asNative (const T &wrapper) noexcept |
Additional Inherited Members | |
![]() | |
using | NativeType = T |
using | HandlerType = Handler |
![]() | |
constexpr const T & | native () const noexcept |
constexpr T & | native () noexcept |
constexpr void | clear () noexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
Create NodeId with ByteString identifier.
|
inlinenoexcept |
Create NodeId from enum class with numeric identifiers like opcua::ObjectId
.
The namespace is retrieved by calling e.g. namespaceOf(opcua::ObjectId)
. Make sure to provide an overload for custom enum types.
|
inline |
Get identifier reference.
T | Requested identifier type, should be either:
|
TypeError | If the requested type T doesn't match the stored identifier type |
Definition at line 765 of file types.hpp.
Referenced by identifierIf(), NodeId(), NodeId(), NodeId(), NodeId(), and opcua::DataType::setBinaryEncodingId().
|
inline |
Get identifier reference.
T | Requested identifier type, should be either:
|
TypeError | If the requested type T doesn't match the stored identifier type |
|
inlinenoexcept |
Get identifier pointer or nullptr
on error.
T | Requested identifier type, should be either:
|
nullptr
if T
doesn't match the stored identifier type
|
inlinenoexcept |
Get identifier pointer or nullptr
on error.
T | Requested identifier type, should be either:
|
nullptr
if T
doesn't match the stored identifier type
|
inlinenoexcept |
Definition at line 705 of file types.hpp.
Referenced by identifierIf().
|
inlinenoexcept |
|
inlinestatic |
Parse NodeId from its string representation.
Format: ns=<namespaceindex>;<type>=<value>
, e.g. i=13
or ns=10;s=HelloWorld
String opcua::NodeId::toString | ( | ) | const |
|
constexprdefaultnoexcept |
|
inlineexplicitconstexpr |
Copy constructor with native object.
Definition at line 151 of file wrapper.hpp.
|
inlineconstexpr |
Copy constructor.
Definition at line 147 of file wrapper.hpp.
|
inlineconstexprnoexcept |
Move constructor with native object.
Definition at line 159 of file wrapper.hpp.
|
inlineconstexprnoexcept |
Move constructor.
Definition at line 155 of file wrapper.hpp.