open62541pp 0.18.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Related Symbols | List of all members
opcua::ExpandedNodeId Class Reference

#include <types.hpp>

Inheritance diagram for opcua::ExpandedNodeId:
[legend]

Detailed Description

UA_ExpandedNodeId wrapper class.

See also
https://reference.opcfoundation.org/Core/Part4/v105/docs/7.16

Definition at line 913 of file types.hpp.

Public Member Functions

 ExpandedNodeId (NodeId id) noexcept
 
 ExpandedNodeId (NodeId id, std::string_view namespaceUri, uint32_t serverIndex)
 
bool isLocal () const noexcept
 
uint32_t hash () const noexcept
 
NodeIdnodeId () noexcept
 
const NodeIdnodeId () const noexcept
 
NodeIdgetNodeId () noexcept
 
const NodeIdgetNodeId () const noexcept
 
std::string_view namespaceUri () const
 
std::string_view getNamespaceUri () const
 
uint32_t serverIndex () const noexcept
 
uint32_t getServerIndex () const noexcept
 
std::string toString () const
 
constexpr TypeWrapper () noexcept=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_ExpandedNodeId, UA_TYPES_EXPANDEDNODEID >
constexpr TypeWrapper () noexcept=default
 
constexpr TypeWrapper (const UA_ExpandedNodeId &native)
 
constexpr TypeWrapper (UA_ExpandedNodeId &&native) noexcept
 
constexpr TypeWrapper (const TypeWrapper &other)
 
constexpr TypeWrapper (TypeWrapper &&other) noexcept
 
 ~TypeWrapper ()
 
constexpr TypeWrapperoperator= (const TypeWrapper &other)
 
constexpr TypeWrapperoperator= (const UA_ExpandedNodeId &native)
 
constexpr TypeWrapperoperator= (TypeWrapper &&other) noexcept
 
constexpr TypeWrapperoperator= (UA_ExpandedNodeId &&native) noexcept
 
- Public Member Functions inherited from opcua::Wrapper< T >
constexpr Wrapper () noexcept=default
 
constexpr Wrapper (const T &native) noexcept
 
constexpr Wrapper (T &&native) noexcept
 
constexpr Wrapperoperator= (const T &native) noexcept
 
constexpr Wrapperoperator= (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 ExpandedNodeId parse (std::string_view str)
 
- Static Public Member Functions inherited from opcua::TypeWrapper< UA_ExpandedNodeId, UA_TYPES_EXPANDEDNODEID >
static constexpr TypeIndex typeIndex ()
 

Related Symbols

(Note that these are not member symbols.)

bool operator== (const UA_ExpandedNodeId &lhs, const UA_ExpandedNodeId &rhs) noexcept
 
bool operator!= (const UA_ExpandedNodeId &lhs, const UA_ExpandedNodeId &rhs) noexcept
 
bool operator< (const UA_ExpandedNodeId &lhs, const UA_ExpandedNodeId &rhs) noexcept
 
bool operator> (const UA_ExpandedNodeId &lhs, const UA_ExpandedNodeId &rhs) noexcept
 
bool operator<= (const UA_ExpandedNodeId &lhs, const UA_ExpandedNodeId &rhs) noexcept
 
bool operator>= (const UA_ExpandedNodeId &lhs, const UA_ExpandedNodeId &rhs) noexcept
 

Additional Inherited Members

- Public Types inherited from opcua::Wrapper< T >
using NativeType = T
 
- Protected Member Functions inherited from opcua::TypeWrapper< UA_ExpandedNodeId, UA_TYPES_EXPANDEDNODEID >
constexpr void clear () noexcept
 
- Protected Member Functions inherited from opcua::Wrapper< T >
constexpr const T & native () const noexcept
 
constexpr T & native () noexcept
 

Constructor & Destructor Documentation

◆ ExpandedNodeId() [1/2]

opcua::ExpandedNodeId::ExpandedNodeId ( NodeId  id)
inlineexplicitnoexcept

Definition at line 917 of file types.hpp.

◆ ExpandedNodeId() [2/2]

opcua::ExpandedNodeId::ExpandedNodeId ( NodeId  id,
std::string_view  namespaceUri,
uint32_t  serverIndex 
)
inline

Definition at line 921 of file types.hpp.

Member Function Documentation

◆ parse()

static ExpandedNodeId opcua::ExpandedNodeId::parse ( std::string_view  str)
inlinestatic

Parse ExpandedNodeId from its string representation.

Format: svr=<serverindex>;ns=<namespaceindex>;<type>=<value> or svr=<serverindex>;nsu=<uri>;<type>=<value>

See also
https://reference.opcfoundation.org/Core/Part6/v104/docs/5.3.1.11

Definition at line 932 of file types.hpp.

◆ isLocal()

bool opcua::ExpandedNodeId::isLocal ( ) const
inlinenoexcept

Definition at line 939 of file types.hpp.

◆ hash()

uint32_t opcua::ExpandedNodeId::hash ( ) const
inlinenoexcept

Definition at line 943 of file types.hpp.

◆ nodeId() [1/2]

NodeId & opcua::ExpandedNodeId::nodeId ( )
inlinenoexcept

Definition at line 947 of file types.hpp.

Referenced by ExpandedNodeId(), ExpandedNodeId(), getNodeId(), getNodeId(), nodeId(), and nodeId().

◆ nodeId() [2/2]

const NodeId & opcua::ExpandedNodeId::nodeId ( ) const
inlinenoexcept

Definition at line 951 of file types.hpp.

◆ getNodeId() [1/2]

NodeId & opcua::ExpandedNodeId::getNodeId ( )
inlinenoexcept
Deprecated:
Use nodeId() instead

Definition at line 957 of file types.hpp.

◆ getNodeId() [2/2]

const NodeId & opcua::ExpandedNodeId::getNodeId ( ) const
inlinenoexcept
Deprecated:
Use nodeId() instead

Definition at line 963 of file types.hpp.

◆ namespaceUri()

std::string_view opcua::ExpandedNodeId::namespaceUri ( ) const
inline

Definition at line 967 of file types.hpp.

Referenced by ExpandedNodeId(), getNamespaceUri(), and namespaceUri().

◆ getNamespaceUri()

std::string_view opcua::ExpandedNodeId::getNamespaceUri ( ) const
inline
Deprecated:
Use namespaceUri() instead

Definition at line 973 of file types.hpp.

◆ serverIndex()

uint32_t opcua::ExpandedNodeId::serverIndex ( ) const
inlinenoexcept

Definition at line 977 of file types.hpp.

Referenced by ExpandedNodeId(), and getServerIndex().

◆ getServerIndex()

uint32_t opcua::ExpandedNodeId::getServerIndex ( ) const
inlinenoexcept
Deprecated:
Use serverIndex() instead

Definition at line 983 of file types.hpp.

◆ toString()

std::string opcua::ExpandedNodeId::toString ( ) const
Deprecated:
Use free function opcua::toString(const T&) instead

◆ TypeWrapper() [1/5]

constexpr opcua::TypeWrapper< T, Index >::TypeWrapper ( )
constexprdefaultnoexcept

◆ TypeWrapper() [2/5]

constexpr opcua::TypeWrapper< T, Index >::TypeWrapper ( const T &  native)
inlineexplicitconstexpr

Constructor with native object (deep copy).

Definition at line 31 of file typewrapper.hpp.

◆ TypeWrapper() [3/5]

constexpr opcua::TypeWrapper< T, Index >::TypeWrapper ( T &&  native)
inlineconstexprnoexcept

Constructor with native object (move rvalue).

Definition at line 35 of file typewrapper.hpp.

◆ TypeWrapper() [4/5]

constexpr opcua::TypeWrapper< T, Index >::TypeWrapper ( const TypeWrapper other)
inlineconstexpr

Copy constructor (deep copy).

Definition at line 43 of file typewrapper.hpp.

◆ TypeWrapper() [5/5]

constexpr opcua::TypeWrapper< T, Index >::TypeWrapper ( TypeWrapper &&  other)
inlineconstexprnoexcept

Move constructor.

Definition at line 47 of file typewrapper.hpp.

Friends And Related Symbol Documentation

◆ operator==()

bool operator== ( const UA_ExpandedNodeId lhs,
const UA_ExpandedNodeId rhs 
)
related

Definition at line 993 of file types.hpp.

◆ operator!=()

bool operator!= ( const UA_ExpandedNodeId lhs,
const UA_ExpandedNodeId rhs 
)
related

Definition at line 998 of file types.hpp.

◆ operator<()

bool operator< ( const UA_ExpandedNodeId lhs,
const UA_ExpandedNodeId rhs 
)
related

Definition at line 1003 of file types.hpp.

◆ operator>()

bool operator> ( const UA_ExpandedNodeId lhs,
const UA_ExpandedNodeId rhs 
)
related

Definition at line 1008 of file types.hpp.

◆ operator<=()

bool operator<= ( const UA_ExpandedNodeId lhs,
const UA_ExpandedNodeId rhs 
)
related

Definition at line 1013 of file types.hpp.

◆ operator>=()

bool operator>= ( const UA_ExpandedNodeId lhs,
const UA_ExpandedNodeId rhs 
)
related

Definition at line 1018 of file types.hpp.