open62541pp 0.18.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
Public Member Functions | Related Symbols | List of all members
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 1079 of file types.hpp.

Public Member Functions

 LocalizedText (std::string_view locale, std::string_view text)
 
std::string_view locale () const noexcept
 
std::string_view getLocale () const noexcept
 
std::string_view text () const noexcept
 
std::string_view getText () const noexcept
 
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_LocalizedText, UA_TYPES_LOCALIZEDTEXT >
constexpr TypeWrapper () noexcept=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
 
- 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
 

Related Symbols

(Note that these are not member symbols.)

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

Additional Inherited Members

- Public Types inherited from opcua::Wrapper< T >
using NativeType = T
 
- Static Public Member Functions inherited from opcua::TypeWrapper< UA_LocalizedText, UA_TYPES_LOCALIZEDTEXT >
static constexpr TypeIndex typeIndex ()
 
- Protected Member Functions inherited from opcua::TypeWrapper< UA_LocalizedText, UA_TYPES_LOCALIZEDTEXT >
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

◆ LocalizedText()

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

Definition at line 1083 of file types.hpp.

Member Function Documentation

◆ locale()

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

Definition at line 1088 of file types.hpp.

Referenced by getLocale(), locale(), and LocalizedText().

◆ getLocale()

std::string_view opcua::LocalizedText::getLocale ( ) const
inlinenoexcept
Deprecated:
Use locale() instead

Definition at line 1094 of file types.hpp.

◆ text()

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

Definition at line 1098 of file types.hpp.

Referenced by getText(), LocalizedText(), and text().

◆ getText()

std::string_view opcua::LocalizedText::getText ( ) const
inlinenoexcept
Deprecated:
Use text() instead

Definition at line 1104 of file types.hpp.

◆ 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_LocalizedText lhs,
const UA_LocalizedText rhs 
)
related

Definition at line 1110 of file types.hpp.

◆ operator!=()

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

Definition at line 1115 of file types.hpp.