open62541pp 0.17.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 | |
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 |
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 & | value () &noexcept |
const Variant & | value () const &noexcept |
Variant && | value () &&noexcept |
const Variant && | value () const &&noexcept |
Variant & | getValue () &noexcept |
const Variant & | getValue () const &noexcept |
Variant && | getValue () &&noexcept |
const Variant && | getValue () const &&noexcept |
DateTime | sourceTimestamp () const noexcept |
DateTime | getSourceTimestamp () const noexcept |
DateTime | serverTimestamp () const noexcept |
DateTime | getServerTimestamp () const noexcept |
uint16_t | sourcePicoseconds () const noexcept |
uint16_t | getSourcePicoseconds () const noexcept |
uint16_t | serverPicoseconds () const noexcept |
uint16_t | getServerPicoseconds () const noexcept |
StatusCode | status () const noexcept |
StatusCode | getStatus () 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 |
![]() | |
constexpr | TypeWrapper () noexcept=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 | Wrapper () noexcept=default |
constexpr | Wrapper (const UA_DataValue &native) noexcept |
constexpr | Wrapper (UA_DataValue &&native) noexcept |
constexpr Wrapper & | operator= (const UA_DataValue &native) noexcept |
constexpr Wrapper & | operator= (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 |
constexpr void | swap (Wrapper &other) noexcept |
constexpr void | swap (UA_DataValue &native) 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 constexpr TypeIndex | typeIndex () |
Additional Inherited Members | |
![]() | |
using | NativeType |
![]() | |
constexpr void | clear () noexcept |
![]() | |
constexpr const UA_DataValue & | native () const noexcept |
constexpr UA_DataValue & | native () noexcept |
![]() | |
constexpr WrapperType * | asWrapper (NativeType *native) noexcept |
constexpr const WrapperType * | asWrapper (const NativeType *native) noexcept |
constexpr WrapperType & | asWrapper (NativeType &native) noexcept |
constexpr const WrapperType & | asWrapper (const NativeType &native) noexcept |
constexpr NativeType * | asNative (WrapperType *wrapper) noexcept |
constexpr const NativeType * | asNative (const WrapperType *wrapper) noexcept |
constexpr NativeType & | asNative (WrapperType &wrapper) noexcept |
constexpr const NativeType & | asNative (const WrapperType &wrapper) noexcept |
|
inlineexplicitnoexcept |
Definition at line 1836 of file types.hpp.
Referenced by fromArray(), and fromScalar().
|
inlinenoexcept |
|
inlinestaticnodiscard |
Create DataValue from scalar value.
opcua::DataValue dv(opcua::Variant(value))
|
inlinestaticnodiscard |
Create DataValue from array.
opcua::DataValue dv(opcua::Variant(array))
|
inline |
Set value (copy).
Definition at line 1885 of file types.hpp.
Referenced by DataValue().
|
inlinenoexcept |
|
inlinenoexcept |
Set source timestamp for the value.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Get value.
Definition at line 1951 of file types.hpp.
Referenced by DataValue(), getValue(), getValue(), getValue(), getValue(), opcua::Node< Connection >::readDataValue(), setValue(), setValue(), value(), value(), value(), and value().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Get source timestamp for the value.
Definition at line 1995 of file types.hpp.
Referenced by DataValue(), getSourceTimestamp(), setSourceTimestamp(), and sourceTimestamp().
|
inlinenoexcept |
|
inlinenoexcept |
Get server timestamp for the value.
Definition at line 2006 of file types.hpp.
Referenced by DataValue(), getServerTimestamp(), serverTimestamp(), and setServerTimestamp().
|
inlinenoexcept |
|
inlinenoexcept |
Get picoseconds interval added to the source timestamp.
Definition at line 2017 of file types.hpp.
Referenced by DataValue(), getSourcePicoseconds(), and setSourcePicoseconds().
|
inlinenoexcept |
|
inlinenoexcept |
Get picoseconds interval added to the server timestamp.
Definition at line 2028 of file types.hpp.
Referenced by DataValue(), getServerPicoseconds(), and setServerPicoseconds().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
constexprdefaultnoexcept |
|
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.