open62541pp 0.16.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
opcua::LocalizedText Class Reference

#include <types.hpp>

Inheritance diagram for opcua::LocalizedText:
[legend]

Detailed Description

UA_LocalizedText wrapper class.

The format of locale is <language>[-<country/region>]:

Examples
events/client_eventfilter.cpp.

Definition at line 837 of file types.hpp.

Public Member Functions

 LocalizedText (std::string_view locale, std::string_view text)
 
std::string_view getLocale () const noexcept
 
std::string_view getText () const noexcept
 
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_LocalizedText, UA_TYPES_LOCALIZEDTEXT >
constexpr TypeWrapper ()=default
 
constexpr TypeWrapper (const UA_LocalizedText &native)
 
constexpr TypeWrapper (UA_LocalizedText &&native) noexcept
 
constexpr TypeWrapper (const TypeWrapper &other)
 
constexpr TypeWrapper (TypeWrapper &&other) noexcept
 
 ~TypeWrapper ()
 
constexpr TypeWrapperoperator= (const TypeWrapper &other)
 
constexpr TypeWrapperoperator= (const UA_LocalizedText &native)
 
constexpr TypeWrapperoperator= (TypeWrapper &&other) noexcept
 
constexpr TypeWrapperoperator= (UA_LocalizedText &&native) noexcept
 
constexpr void swap (TypeWrapper &other) noexcept
 
constexpr void swap (UA_LocalizedText &native) noexcept
 
- Public Member Functions inherited from opcua::Wrapper< UA_LocalizedText >
constexpr Wrapper ()=default
 
constexpr Wrapper (const UA_LocalizedText &native)
 
constexpr Wrapper (UA_LocalizedText &&native) noexcept
 
constexpr operator UA_LocalizedText & () noexcept
 
constexpr operator const UA_LocalizedText & () const noexcept
 
constexpr UA_LocalizedTextoperator-> () noexcept
 
constexpr const UA_LocalizedTextoperator-> () const noexcept
 
constexpr UA_LocalizedTexthandle () noexcept
 
constexpr const UA_LocalizedTexthandle () const noexcept
 

Additional Inherited Members

- Public Types inherited from opcua::Wrapper< UA_LocalizedText >
using NativeType
 
- Static Public Member Functions inherited from opcua::TypeWrapper< UA_LocalizedText, UA_TYPES_LOCALIZEDTEXT >
static constexpr TypeIndex getTypeIndex ()
 
- Protected Member Functions inherited from opcua::TypeWrapper< UA_LocalizedText, UA_TYPES_LOCALIZEDTEXT >
constexpr void clear () noexcept
 
- Protected Member Functions inherited from opcua::Wrapper< UA_LocalizedText >
constexpr const UA_LocalizedTextnative () const noexcept
 
constexpr UA_LocalizedTextnative () noexcept
 

Constructor & Destructor Documentation

◆ LocalizedText()

opcua::LocalizedText::LocalizedText ( std::string_view locale,
std::string_view text )
inline

Definition at line 841 of file types.hpp.

Member Function Documentation

◆ getLocale()

std::string_view opcua::LocalizedText::getLocale ( ) const
inlinenoexcept

Definition at line 846 of file types.hpp.

◆ getText()

std::string_view opcua::LocalizedText::getText ( ) const
inlinenoexcept

Definition at line 850 of file types.hpp.

◆ TypeWrapper() [1/5]

opcua::TypeWrapper< T, typeIndex >::TypeWrapper ( )
constexprdefault

◆ TypeWrapper() [2/5]

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

Constructor with native object (deep copy).

Definition at line 31 of file typewrapper.hpp.

◆ TypeWrapper() [3/5]

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

Constructor with native object (move rvalue).

Definition at line 35 of file typewrapper.hpp.

◆ TypeWrapper() [4/5]

opcua::TypeWrapper< T, typeIndex >::TypeWrapper ( const TypeWrapper & other)
inlineconstexpr

Copy constructor (deep copy).

Definition at line 43 of file typewrapper.hpp.

◆ TypeWrapper() [5/5]

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

Move constructor.

Definition at line 47 of file typewrapper.hpp.