open62541pp 0.16.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, String identifier) noexcept | |
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 | getNamespaceIndex () const noexcept |
NodeIdType | getIdentifierType () const noexcept |
std::variant< uint32_t, String, Guid, ByteString > | getIdentifier () const |
template<typename T > | |
auto | getIdentifierAs () const |
template<NodeIdType E> | |
auto | getIdentifierAs () const |
std::string | toString () const |
constexpr | TypeWrapper ()=default |
constexpr | TypeWrapper (const T &native) |
constexpr | TypeWrapper (T &&native) noexcept |
constexpr | TypeWrapper (const TypeWrapper &other) |
constexpr | TypeWrapper (TypeWrapper &&other) noexcept |
Public Member Functions inherited from opcua::TypeWrapper< UA_NodeId, UA_TYPES_NODEID > | |
constexpr | TypeWrapper ()=default |
constexpr | TypeWrapper (const UA_NodeId &native) |
constexpr | TypeWrapper (UA_NodeId &&native) noexcept |
constexpr | TypeWrapper (const TypeWrapper &other) |
constexpr | TypeWrapper (TypeWrapper &&other) noexcept |
~TypeWrapper () | |
constexpr TypeWrapper & | operator= (const TypeWrapper &other) |
constexpr TypeWrapper & | operator= (const UA_NodeId &native) |
constexpr TypeWrapper & | operator= (TypeWrapper &&other) noexcept |
constexpr TypeWrapper & | operator= (UA_NodeId &&native) noexcept |
constexpr void | swap (TypeWrapper &other) noexcept |
constexpr void | swap (UA_NodeId &native) noexcept |
Public Member Functions inherited from opcua::Wrapper< UA_NodeId > | |
constexpr | Wrapper ()=default |
constexpr | Wrapper (const UA_NodeId &native) |
constexpr | Wrapper (UA_NodeId &&native) noexcept |
constexpr | operator UA_NodeId & () noexcept |
constexpr | operator const UA_NodeId & () const noexcept |
constexpr UA_NodeId * | operator-> () noexcept |
constexpr const UA_NodeId * | operator-> () const noexcept |
constexpr UA_NodeId * | handle () noexcept |
constexpr const UA_NodeId * | handle () const noexcept |
Additional Inherited Members | |
Public Types inherited from opcua::Wrapper< UA_NodeId > | |
using | NativeType |
Static Public Member Functions inherited from opcua::TypeWrapper< UA_NodeId, UA_TYPES_NODEID > | |
static constexpr TypeIndex | getTypeIndex () |
Protected Member Functions inherited from opcua::TypeWrapper< UA_NodeId, UA_TYPES_NODEID > | |
constexpr void | clear () noexcept |
Protected Member Functions inherited from opcua::Wrapper< UA_NodeId > | |
constexpr const UA_NodeId & | native () const noexcept |
constexpr UA_NodeId & | native () noexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
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. getNamespace(opcua::ObjectId)
. Make sure to provide an overload for custom enum types.
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
Get identifier by template type.
Definition at line 670 of file types.hpp.
Referenced by getIdentifierAs(), and opcua::DataType::setBinaryEncodingId().
|
inline |
std::string opcua::NodeId::toString | ( | ) | const |
Encode NodeId as a string like ns=1;s=SomeNode
.
|
constexprdefault |
|
inlineexplicitconstexpr |
Constructor with native object (deep copy).
Definition at line 31 of file typewrapper.hpp.
|
inlineconstexprnoexcept |
Constructor with native object (move rvalue).
Definition at line 35 of file typewrapper.hpp.
|
inlineconstexpr |
Copy constructor (deep copy).
Definition at line 43 of file typewrapper.hpp.
|
inlineconstexprnoexcept |
Move constructor.
Definition at line 47 of file typewrapper.hpp.