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

#include <types.hpp>

Inheritance diagram for opcua::Guid:
[legend]

Detailed Description

UA_Guid wrapper class.

See also
https://reference.opcfoundation.org/Core/Part6/v105/docs/5.1.3

Definition at line 473 of file types.hpp.

Public Member Functions

 Guid (std::array< uint8_t, 16 > data) noexcept
 
 Guid (uint32_t data1, uint16_t data2, uint16_t data3, std::array< uint8_t, 8 > data4) noexcept
 
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
 
- Public Member Functions inherited from opcua::Wrapper< UA_Guid >
constexpr Wrapper () noexcept=default
 
constexpr Wrapper (const Wrapper &other)
 
constexpr Wrapper (const UA_Guid &native)
 
constexpr Wrapper (Wrapper &&other) noexcept
 
constexpr Wrapper (UA_Guid &&native) noexcept
 
 ~Wrapper () noexcept=default
 
constexpr Wrapperoperator= (const Wrapper &other)
 
constexpr Wrapperoperator= (const UA_Guid &native)
 
constexpr Wrapperoperator= (Wrapper &&other) noexcept
 
constexpr Wrapperoperator= (UA_Guid &&native) noexcept
 
constexpr operator UA_Guid & () noexcept
 
constexpr operator const UA_Guid & () const noexcept
 
constexpr UA_Guidoperator-> () noexcept
 
constexpr const UA_Guidoperator-> () const noexcept
 
constexpr UA_Guidhandle () noexcept
 
constexpr const UA_Guidhandle () const noexcept
 
constexpr void swap (Wrapper &other) noexcept
 
constexpr void swap (UA_Guid &native) noexcept
 

Static Public Member Functions

static Guid random () noexcept
 
static Guid parse (std::string_view str)
 

Related Symbols

(Note that these are not member symbols.)

bool operator== (const UA_Guid &lhs, const UA_Guid &rhs) noexcept
 
bool operator!= (const UA_Guid &lhs, const UA_Guid &rhs) noexcept
 

Additional Inherited Members

- Public Types inherited from opcua::Wrapper< UA_Guid >
using NativeType = UA_Guid
 
using HandlerType = TypeHandler< UA_Guid >
 
- Protected Member Functions inherited from opcua::Wrapper< UA_Guid >
constexpr const UA_Guidnative () const noexcept
 
constexpr UA_Guidnative () noexcept
 
constexpr void clear () noexcept
 

Constructor & Destructor Documentation

◆ Guid() [1/2]

opcua::Guid::Guid ( std::array< uint8_t, 16 >  data)
inlineexplicitnoexcept

Definition at line 477 of file types.hpp.

◆ Guid() [2/2]

opcua::Guid::Guid ( uint32_t  data1,
uint16_t  data2,
uint16_t  data3,
std::array< uint8_t, 8 >  data4 
)
inlinenoexcept

Definition at line 489 of file types.hpp.

Member Function Documentation

◆ parse()

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

Parse Guid from its string representation.

Format: C496578A-0DFE-4B8F-870A-745238C6AEAE.

Definition at line 505 of file types.hpp.

◆ random()

static Guid opcua::Guid::random ( )
inlinestaticnoexcept

Generate random Guid.

Definition at line 498 of file types.hpp.

◆ toString()

String opcua::Guid::toString ( ) const
Deprecated:
Use free function opcua::toString(const T&) instead

◆ Wrapper() [1/5]

constexpr opcua::Wrapper< T, Handler >::Wrapper ( )
constexprdefaultnoexcept

◆ Wrapper() [2/5]

constexpr opcua::Wrapper< T, Handler >::Wrapper ( const T &  native)
inlineexplicitconstexpr

Copy constructor with native object.

Definition at line 151 of file wrapper.hpp.

◆ Wrapper() [3/5]

constexpr opcua::Wrapper< T, Handler >::Wrapper ( const Wrapper other)
inlineconstexpr

Copy constructor.

Definition at line 147 of file wrapper.hpp.

◆ Wrapper() [4/5]

constexpr opcua::Wrapper< T, Handler >::Wrapper ( T &&  native)
inlineconstexprnoexcept

Move constructor with native object.

Definition at line 159 of file wrapper.hpp.

◆ Wrapper() [5/5]

constexpr opcua::Wrapper< T, Handler >::Wrapper ( Wrapper &&  other)
inlineconstexprnoexcept

Move constructor.

Definition at line 155 of file wrapper.hpp.

Friends And Related Symbol Documentation

◆ operator!=()

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

Definition at line 523 of file types.hpp.

◆ operator==()

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

Definition at line 518 of file types.hpp.