open62541pp 0.19.0
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< NodeAttributesMaskspecifiedAttributes () const noexcept
 
const LocalizedTextdisplayName () const noexcept
 
autosetDisplayName (LocalizedText displayName)
 
const LocalizedTextdescription () const noexcept
 
autosetDescription (LocalizedText description)
 
Bitmask< WriteMaskwriteMask () const noexcept
 
autosetWriteMask (Bitmask< WriteMask > writeMask) noexcept
 
Bitmask< WriteMaskuserWriteMask () const noexcept
 
autosetUserWriteMask (Bitmask< WriteMask > userWriteMask) noexcept
 
const Variantvalue () const noexcept
 
autosetValue (Variant value)
 
template<typename... Args>
autosetValueScalar (Args &&... args)
 
template<typename... Args>
autosetValueArray (Args &&... args)
 
const NodeIddataType () const noexcept
 
auto & setDataType (NodeId dataType)
 
template<typename T >
auto & setDataType ()
 
ValueRank valueRank () const noexcept
 
autosetValueRank (ValueRank valueRank) noexcept
 
Span< const uint32_tarrayDimensions () const noexcept
 
Span< uint32_tarrayDimensions () noexcept
 
autosetArrayDimensions (Span< const uint32_t > arrayDimensions)
 
bool isAbstract () const noexcept
 
autosetIsAbstract (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 Wrapperoperator= (const Wrapper &other)
 
constexpr Wrapperoperator= (const T &native)
 
constexpr Wrapperoperator= (Wrapper &&other) 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
 

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.