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

#include <datatype.hpp>

Inheritance diagram for opcua::DataType:
[legend]

Detailed Description

UA_DataType wrapper class.

Examples
custom_datatypes/custom_datatypes.hpp.

Definition at line 27 of file datatype.hpp.

Public Member Functions

constexpr DataType ()=default
 
 DataType (const UA_DataType &native)
 
 DataType (UA_DataType &&native)
 
 DataType (TypeIndex typeIndex)
 
 ~DataType ()
 
 DataType (const DataType &other)
 
 DataType (DataType &&other) noexcept
 
DataTypeoperator= (const DataType &other)
 
DataTypeoperator= (DataType &&other) noexcept
 
const char * getTypeName () const noexcept
 
void setTypeName (const char *typeName) noexcept
 
NodeId getTypeId () const noexcept
 
void setTypeId (NodeId typeId)
 
NodeId getBinaryEncodingId () const noexcept
 
void setBinaryEncodingId (NodeId binaryEncodingId)
 
uint16_t getMemSize () const noexcept
 
void setMemSize (uint16_t memSize) noexcept
 
uint8_t getTypeKind () const noexcept
 
void setTypeKind (uint8_t typeKind) noexcept
 
bool getPointerFree () const noexcept
 
void setPointerFree (bool pointerFree) noexcept
 
bool getOverlayable () const noexcept
 
void setOverlayable (bool overlayable) noexcept
 
Span< const DataTypeMembergetMembers () const noexcept
 
void setMembers (Span< const DataTypeMember > members)
 
- Public Member Functions inherited from opcua::Wrapper< UA_DataType >
constexpr Wrapper ()=default
 
constexpr Wrapper (const UA_DataType &native)
 
constexpr Wrapper (UA_DataType &&native) noexcept
 
constexpr operator UA_DataType & () noexcept
 
constexpr operator const UA_DataType & () const noexcept
 
constexpr UA_DataTypeoperator-> () noexcept
 
constexpr const UA_DataTypeoperator-> () const noexcept
 
constexpr UA_DataTypehandle () noexcept
 
constexpr const UA_DataTypehandle () const noexcept
 

Additional Inherited Members

- Public Types inherited from opcua::Wrapper< UA_DataType >
using NativeType
 
- Protected Member Functions inherited from opcua::Wrapper< UA_DataType >
constexpr const UA_DataTypenative () const noexcept
 
constexpr UA_DataTypenative () noexcept
 

Constructor & Destructor Documentation

◆ DataType() [1/6]

opcua::DataType::DataType ( )
constexprdefault

◆ DataType() [2/6]

opcua::DataType::DataType ( const UA_DataType & native)
explicit

◆ DataType() [3/6]

opcua::DataType::DataType ( UA_DataType && native)
explicit

◆ DataType() [4/6]

opcua::DataType::DataType ( TypeIndex typeIndex)
explicit

◆ ~DataType()

opcua::DataType::~DataType ( )

◆ DataType() [5/6]

opcua::DataType::DataType ( const DataType & other)

◆ DataType() [6/6]

opcua::DataType::DataType ( DataType && other)
noexcept

Member Function Documentation

◆ operator=() [1/2]

DataType & opcua::DataType::operator= ( const DataType & other)

◆ operator=() [2/2]

DataType & opcua::DataType::operator= ( DataType && other)
noexcept

◆ getTypeName()

const char * opcua::DataType::getTypeName ( ) const
inlinenoexcept

Definition at line 43 of file datatype.hpp.

◆ setTypeName()

void opcua::DataType::setTypeName ( const char * typeName)
inlinenoexcept

◆ getTypeId()

NodeId opcua::DataType::getTypeId ( ) const
inlinenoexcept

Definition at line 57 of file datatype.hpp.

◆ setTypeId()

◆ getBinaryEncodingId()

NodeId opcua::DataType::getBinaryEncodingId ( ) const
inlinenoexcept

Definition at line 65 of file datatype.hpp.

◆ setBinaryEncodingId()

void opcua::DataType::setBinaryEncodingId ( NodeId binaryEncodingId)
inline

◆ getMemSize()

uint16_t opcua::DataType::getMemSize ( ) const
inlinenoexcept

Definition at line 81 of file datatype.hpp.

◆ setMemSize()

void opcua::DataType::setMemSize ( uint16_t memSize)
inlinenoexcept

◆ getTypeKind()

uint8_t opcua::DataType::getTypeKind ( ) const
inlinenoexcept

Definition at line 89 of file datatype.hpp.

◆ setTypeKind()

void opcua::DataType::setTypeKind ( uint8_t typeKind)
inlinenoexcept

◆ getPointerFree()

bool opcua::DataType::getPointerFree ( ) const
inlinenoexcept

Definition at line 97 of file datatype.hpp.

◆ setPointerFree()

void opcua::DataType::setPointerFree ( bool pointerFree)
inlinenoexcept

◆ getOverlayable()

bool opcua::DataType::getOverlayable ( ) const
inlinenoexcept

Definition at line 105 of file datatype.hpp.

◆ setOverlayable()

void opcua::DataType::setOverlayable ( bool overlayable)
inlinenoexcept

◆ getMembers()

Span< const DataTypeMember > opcua::DataType::getMembers ( ) const
inlinenoexcept

Definition at line 113 of file datatype.hpp.

◆ setMembers()

void opcua::DataType::setMembers ( Span< const DataTypeMember > members)