open62541pp 0.21.3
C++ wrapper of open62541
Loading...
Searching...
No Matches
Public Member Functions | List of all members
opcua::ua::VariableTypeAttributes Class Reference

#include <types.hpp>

Inheritance diagram for opcua::ua::VariableTypeAttributes:
[legend]

Detailed Description

UA_VariableAttributes wrapper class.

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

Definition at line 517 of file types.hpp.

Public Member Functions

 VariableTypeAttributes ()
 
Bitmask< NodeAttributesMask > specifiedAttributes () const noexcept
 
const LocalizedText & displayName () const noexcept
 
auto & setDisplayName (LocalizedText displayName)
 
const LocalizedText & description () const noexcept
 
auto & setDescription (LocalizedText description)
 
Bitmask< WriteMask > writeMask () const noexcept
 
auto & setWriteMask (Bitmask< WriteMask > writeMask) noexcept
 
Bitmask< WriteMask > userWriteMask () const noexcept
 
auto & setUserWriteMask (Bitmask< WriteMask > userWriteMask) noexcept
 
const Variant & value () const noexcept
 
auto & setValue (Variant value)
 
template<typename... Args>
auto & setValueScalar (Args &&... args)
 
template<typename... Args>
auto & setValueArray (Args &&... args)
 
const NodeId & dataType () const noexcept
 
auto & setDataType (NodeId dataType)
 
template<typename T >
auto & setDataType ()
 
ValueRank valueRank () const noexcept
 
auto & setValueRank (ValueRank valueRank) noexcept
 
Span< const uint32_t > arrayDimensions () const noexcept
 
Span< uint32_t > arrayDimensions () noexcept
 
auto & setArrayDimensions (Span< const uint32_t > arrayDimensions)
 
bool isAbstract () const noexcept
 
auto & setIsAbstract (bool isAbstract) noexcept
 
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< T, Handler >
constexpr Wrapper () noexcept=default
 
constexpr Wrapper (const Wrapper &other)
 
constexpr Wrapper (const T &native)
 
constexpr Wrapper (Wrapper &&other) noexcept
 
constexpr Wrapper (T &&native) noexcept
 
 ~Wrapper () noexcept=default
 
constexpr Wrapper & operator= (const Wrapper &other)
 
constexpr Wrapper & operator= (const T &native)
 
constexpr Wrapper & operator= (Wrapper &&other) noexcept
 
constexpr Wrapper & operator= (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
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ VariableTypeAttributes()

opcua::ua::VariableTypeAttributes::VariableTypeAttributes ( )
inline

Construct with default attribute definitions.

Definition at line 523 of file types.hpp.

Member Function Documentation

◆ arrayDimensions() [1/2]

Span< const uint32_t > opcua::ua::VariableTypeAttributes::arrayDimensions ( ) const
inlinenoexcept

Definition at line 559 of file types.hpp.

◆ arrayDimensions() [2/2]

Span< uint32_t > opcua::ua::VariableTypeAttributes::arrayDimensions ( )
inlinenoexcept

Definition at line 559 of file types.hpp.

◆ dataType()

const NodeId & opcua::ua::VariableTypeAttributes::dataType ( ) const
inlinenoexcept

Definition at line 543 of file types.hpp.

◆ description()

const LocalizedText & opcua::ua::VariableTypeAttributes::description ( ) const
inlinenoexcept

Definition at line 526 of file types.hpp.

◆ displayName()

const LocalizedText & opcua::ua::VariableTypeAttributes::displayName ( ) const
inlinenoexcept

Definition at line 526 of file types.hpp.

◆ isAbstract()

bool opcua::ua::VariableTypeAttributes::isAbstract ( ) const
inlinenoexcept

Definition at line 560 of file types.hpp.

◆ setArrayDimensions()

auto & opcua::ua::VariableTypeAttributes::setArrayDimensions ( Span< const uint32_t >  arrayDimensions)
inline

Definition at line 559 of file types.hpp.

◆ setDataType() [1/2]

template<typename T >
auto & opcua::ua::VariableTypeAttributes::setDataType ( )
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Deduce the dataType from the template type.

Definition at line 548 of file types.hpp.

◆ setDataType() [2/2]

auto & opcua::ua::VariableTypeAttributes::setDataType ( NodeId  dataType)
inline
Examples
custom_datatypes/server_custom_datatypes.cpp.

Definition at line 543 of file types.hpp.

◆ setDescription()

auto & opcua::ua::VariableTypeAttributes::setDescription ( LocalizedText  description)
inline

Definition at line 526 of file types.hpp.

◆ setDisplayName()

auto & opcua::ua::VariableTypeAttributes::setDisplayName ( LocalizedText  displayName)
inline

Definition at line 526 of file types.hpp.

◆ setIsAbstract()

auto & opcua::ua::VariableTypeAttributes::setIsAbstract ( bool  isAbstract)
inlinenoexcept

Definition at line 560 of file types.hpp.

◆ setUserWriteMask()

auto & opcua::ua::VariableTypeAttributes::setUserWriteMask ( Bitmask< WriteMask >  userWriteMask)
inlinenoexcept

Definition at line 526 of file types.hpp.

◆ setValue()

auto & opcua::ua::VariableTypeAttributes::setValue ( Variant  value)
inline

Definition at line 527 of file types.hpp.

◆ setValueArray()

template<typename... Args>
auto & opcua::ua::VariableTypeAttributes::setValueArray ( Args &&...  args)
inline
Deprecated:
Use setValue(Variant{...}) instead

Definition at line 539 of file types.hpp.

◆ setValueRank()

auto & opcua::ua::VariableTypeAttributes::setValueRank ( ValueRank  valueRank)
inlinenoexcept

Definition at line 552 of file types.hpp.

◆ setValueScalar()

template<typename... Args>
auto & opcua::ua::VariableTypeAttributes::setValueScalar ( Args &&...  args)
inline
Deprecated:
Use setValue(Variant{...}) instead

Definition at line 532 of file types.hpp.

◆ setWriteMask()

auto & opcua::ua::VariableTypeAttributes::setWriteMask ( Bitmask< WriteMask >  writeMask)
inlinenoexcept

Definition at line 526 of file types.hpp.

◆ specifiedAttributes()

Bitmask< NodeAttributesMask > opcua::ua::VariableTypeAttributes::specifiedAttributes ( ) const
inlinenoexcept

Definition at line 526 of file types.hpp.

◆ userWriteMask()

Bitmask< WriteMask > opcua::ua::VariableTypeAttributes::userWriteMask ( ) const
inlinenoexcept

Definition at line 526 of file types.hpp.

◆ value()

const Variant & opcua::ua::VariableTypeAttributes::value ( ) const
inlinenoexcept

Definition at line 527 of file types.hpp.

◆ valueRank()

ValueRank opcua::ua::VariableTypeAttributes::valueRank ( ) const
inlinenoexcept

Definition at line 552 of file types.hpp.

◆ 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.

◆ writeMask()

Bitmask< WriteMask > opcua::ua::VariableTypeAttributes::writeMask ( ) const
inlinenoexcept

Definition at line 526 of file types.hpp.