open62541++ 0.13.0
C++ wrapper of open62541
|
#include <DataValue.h>
UA_DataValue wrapper class.
Definition at line 20 of file DataValue.h.
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 |
bool | hasStatusCode () 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 |
StatusCode | getStatusCode () 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 |
void | setStatusCode (StatusCode statusCode) 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< T > | |
constexpr | Wrapper ()=default |
constexpr | Wrapper (const T &native) |
constexpr | Wrapper (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 |
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< T > | |
using | NativeType = T |
Protected Member Functions inherited from opcua::TypeWrapper< UA_DataValue, UA_TYPES_DATAVALUE > | |
constexpr void | clear () noexcept |
Protected Member Functions inherited from opcua::Wrapper< T > | |
constexpr const T & | native () const noexcept |
constexpr T & | native () noexcept |
|
inlineexplicitnoexcept |
Definition at line 24 of file DataValue.h.
|
inlinenoexcept |
Definition at line 28 of file DataValue.h.
|
inlinestatic |
Create DataValue from scalar value.
Definition at line 56 of file DataValue.h.
Referenced by opcua::services::detail::AttributeHandlerScalar< T, Enable >::toDataValue().
|
inlinestatic |
Create DataValue from array.
Definition at line 63 of file DataValue.h.
Referenced by opcua::services::detail::AttributeHandler< AttributeId::ArrayDimensions >::toDataValue().
|
inlinenoexcept |
Definition at line 67 of file DataValue.h.
Referenced by opcua::services::detail::AttributeHandler< AttributeId::Value >::toDataValue().
|
inlinenoexcept |
Definition at line 71 of file DataValue.h.
|
inlinenoexcept |
Definition at line 75 of file DataValue.h.
|
inlinenoexcept |
Definition at line 79 of file DataValue.h.
|
inlinenoexcept |
Definition at line 83 of file DataValue.h.
|
inlinenoexcept |
Definition at line 87 of file DataValue.h.
Referenced by hasStatusCode().
|
inlinenoexcept |
Definition at line 93 of file DataValue.h.
|
inlinenoexcept |
Get value.
Definition at line 98 of file DataValue.h.
|
inlinenoexcept |
Get value.
Definition at line 103 of file DataValue.h.
|
inlinenoexcept |
Get value (rvalue).
Definition at line 108 of file DataValue.h.
|
inlinenoexcept |
Get value (rvalue).
Definition at line 113 of file DataValue.h.
|
inlinenoexcept |
Get source timestamp for the value.
Definition at line 118 of file DataValue.h.
|
inlinenoexcept |
Get server timestamp for the value.
Definition at line 123 of file DataValue.h.
|
inlinenoexcept |
Get picoseconds interval added to the source timestamp.
Definition at line 128 of file DataValue.h.
|
inlinenoexcept |
Get picoseconds interval added to the server timestamp.
Definition at line 133 of file DataValue.h.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 144 of file DataValue.h.
|
inline |
|
inlinenoexcept |
Set value (move).
Definition at line 155 of file DataValue.h.
|
inlinenoexcept |
Set source timestamp for the value.
Definition at line 161 of file DataValue.h.
|
inlinenoexcept |
Set server timestamp for the value.
Definition at line 167 of file DataValue.h.
|
inlinenoexcept |
Set picoseconds interval added to the source timestamp.
Definition at line 173 of file DataValue.h.
|
inlinenoexcept |
Set picoseconds interval added to the server timestamp.
Definition at line 179 of file DataValue.h.
|
inlinenoexcept |
Set status.
Definition at line 185 of file DataValue.h.
Referenced by opcua::services::detail::createDataValueFromStatus(), and setStatusCode().
|
inlinenoexcept |
Definition at line 192 of file DataValue.h.
|
constexprdefault |
|
inlineexplicitconstexpr |
Constructor with native object (deep copy).
Definition at line 36 of file TypeWrapper.h.
|
inlineconstexprnoexcept |
Constructor with native object (move rvalue).
Definition at line 40 of file TypeWrapper.h.
|
inlineconstexpr |
Copy constructor (deep copy).
Definition at line 48 of file TypeWrapper.h.
|
inlineconstexprnoexcept |
Move constructor.
Definition at line 52 of file TypeWrapper.h.