High Performance OPC UA Server SDK
1.4.1.263
|
The value and associated information. More...
#include <datavalue.h>
Public Member Functions | |
void | ua_datavalue_init (struct ua_datavalue *v) |
Initializes v by setting all members to zero. | |
void | ua_datavalue_clear (struct ua_datavalue *v) |
Free all resources referenced by v and resets it to it's initialized empty state. | |
int | ua_datavalue_compare (const struct ua_datavalue *a, const struct ua_datavalue *b) |
Compares to data values. More... | |
int | ua_datavalue_copy (struct ua_datavalue *dst, const struct ua_datavalue *src) |
Creates a deep copy of src . More... | |
Data Fields | |
struct ua_variant | value |
The data value. More... | |
ua_statuscode | status |
The StatusCode that defines with the Server’s ability to access/provide the value. | |
ua_datetime | server_timestamp |
The serverTimestamp is used to reflect the time that the Server received a Variable value or knew it to be accurate. | |
ua_datetime | source_timestamp |
The sourceTimestamp is used to reflect the timestamp that was applied to a Variable value by the data source. More... | |
The value and associated information.
int ua_datavalue_compare | ( | const struct ua_datavalue * | a, |
const struct ua_datavalue * | b | ||
) |
Compares to data values.
The result of this operating can be used for sorting.
Sort criterias by priority:
a | First datavalue |
b | Second datavalue |
a
is considired to be smaller than b
, a value bigger than zero otherwise. int ua_datavalue_copy | ( | struct ua_datavalue * | dst, |
const struct ua_datavalue * | src | ||
) |
Creates a deep copy of src
.
src | data value source. |
dst | data value destination. |
source_timestamp |
The sourceTimestamp is used to reflect the timestamp that was applied to a Variable value by the data source.
Once a value has been assigned a source timestamp, the source timestamp for that value instance never changes.
value |
The data value.
If the StatusCode indicates an error, the value is to be ignored and the Server shall set it to null.