open62541pp 0.16.0
C++ wrapper of open62541
|
#include <types.hpp>
UA_DataValue wrapper class.
Public Member Functions | |
DataValue (Variant value) noexcept | |
DataValue (Variant value, std::optional< DateTime > sourceTimestamp, std::optional< DateTime > serverTimestamp, std::optional< uint16_t > sourcePicoseconds, std::optional< uint16_t > serverPicoseconds, std::optional< StatusCode > status) noexcept | |
bool | hasValue () const noexcept |
bool | hasSourceTimestamp () const noexcept |
bool | hasServerTimestamp () const noexcept |
bool | hasSourcePicoseconds () const noexcept |
bool | hasServerPicoseconds () const noexcept |
bool | hasStatus () const noexcept |
Variant & | getValue () &noexcept |
const Variant & | getValue () const &noexcept |
Variant && | getValue () &&noexcept |
const Variant && | getValue () const &&noexcept |
DateTime | getSourceTimestamp () const noexcept |
DateTime | getServerTimestamp () const noexcept |
uint16_t | getSourcePicoseconds () const noexcept |
uint16_t | getServerPicoseconds () const noexcept |
StatusCode | getStatus () const noexcept |
void | setValue (const Variant &value) |
void | setValue (Variant &&value) noexcept |
void | setSourceTimestamp (DateTime sourceTimestamp) noexcept |
void | setServerTimestamp (DateTime serverTimestamp) noexcept |
void | setSourcePicoseconds (uint16_t sourcePicoseconds) noexcept |
void | setServerPicoseconds (uint16_t serverPicoseconds) noexcept |
void | setStatus (StatusCode status) 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_DataValue, UA_TYPES_DATAVALUE > | |
constexpr | TypeWrapper ()=default |
constexpr | TypeWrapper (const UA_DataValue &native) |
constexpr | TypeWrapper (UA_DataValue &&native) noexcept |
constexpr | TypeWrapper (const TypeWrapper &other) |
constexpr | TypeWrapper (TypeWrapper &&other) noexcept |
~TypeWrapper () | |
constexpr TypeWrapper & | operator= (const TypeWrapper &other) |
constexpr TypeWrapper & | operator= (const UA_DataValue &native) |
constexpr TypeWrapper & | operator= (TypeWrapper &&other) noexcept |
constexpr TypeWrapper & | operator= (UA_DataValue &&native) noexcept |
constexpr void | swap (TypeWrapper &other) noexcept |
constexpr void | swap (UA_DataValue &native) noexcept |
Public Member Functions inherited from opcua::Wrapper< UA_DataValue > | |
constexpr | Wrapper ()=default |
constexpr | Wrapper (const UA_DataValue &native) |
constexpr | Wrapper (UA_DataValue &&native) noexcept |
constexpr | operator UA_DataValue & () noexcept |
constexpr | operator const UA_DataValue & () const noexcept |
constexpr UA_DataValue * | operator-> () noexcept |
constexpr const UA_DataValue * | operator-> () const noexcept |
constexpr UA_DataValue * | handle () noexcept |
constexpr const UA_DataValue * | handle () const noexcept |
Static Public Member Functions | |
template<VariantPolicy Policy = VariantPolicy::Copy, typename... Args> | |
static DataValue | fromScalar (Args &&... args) |
template<VariantPolicy Policy = VariantPolicy::Copy, typename... Args> | |
static DataValue | fromArray (Args &&... args) |
Static Public Member Functions inherited from opcua::TypeWrapper< UA_DataValue, UA_TYPES_DATAVALUE > | |
static constexpr TypeIndex | getTypeIndex () |
Additional Inherited Members | |
Public Types inherited from opcua::Wrapper< UA_DataValue > | |
using | NativeType |
Protected Member Functions inherited from opcua::TypeWrapper< UA_DataValue, UA_TYPES_DATAVALUE > | |
constexpr void | clear () noexcept |
Protected Member Functions inherited from opcua::Wrapper< UA_DataValue > | |
constexpr const UA_DataValue & | native () const noexcept |
constexpr UA_DataValue & | native () noexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinestaticnodiscard |
Create DataValue from scalar value.
Definition at line 1514 of file types.hpp.
Referenced by opcua::services::detail::AttributeHandlerScalar< T, Enable >::toDataValue().
|
inlinestaticnodiscard |
Create DataValue from array.
Definition at line 1521 of file types.hpp.
Referenced by opcua::services::detail::AttributeHandler< AttributeId::ArrayDimensions >::toDataValue().
|
inlinenoexcept |
Definition at line 1525 of file types.hpp.
Referenced by opcua::services::detail::AttributeHandlerVariant::toDataValue().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Get value.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
Set source timestamp for the value.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
constexprdefault |
|
inlineexplicitconstexpr |
Constructor with native object (deep copy).
Definition at line 31 of file typewrapper.hpp.
|
inlineconstexprnoexcept |
Constructor with native object (move rvalue).
Definition at line 35 of file typewrapper.hpp.
|
inlineconstexpr |
Copy constructor (deep copy).
Definition at line 43 of file typewrapper.hpp.
|
inlineconstexprnoexcept |
Move constructor.
Definition at line 47 of file typewrapper.hpp.