C++ UA Server SDK
1.5.0.318
|
Array class for the UA stack structure OpcUa_HistoryUpdateResult. More...
#include <uaarraytemplates.h>
Public Member Functions | |
UaHistoryUpdateResults () | |
Constructs an empty instance of the class UaHistoryUpdateResults. | |
UaHistoryUpdateResults (const UaHistoryUpdateResults &other) | |
Constructs an instance of the class HistoryUpdateResults with values from another HistoryUpdateResults object. More... | |
UaHistoryUpdateResults (OpcUa_Int32 length, OpcUa_HistoryUpdateResult *data) | |
Constructs an instance of the class UaHistoryUpdateResult using a raw OpcUa_HistoryUpdateResult array. More... | |
virtual | ~UaHistoryUpdateResults () |
Destroys the UaHistoryUpdateResults object. | |
UaHistoryUpdateResults & | operator= (const UaHistoryUpdateResults &other) |
Assignment operator. More... | |
const OpcUa_HistoryUpdateResult & | operator[] (OpcUa_UInt32 index) const |
Index operator. More... | |
OpcUa_HistoryUpdateResult & | operator[] (OpcUa_UInt32 index) |
Index operator. More... | |
bool | operator== (const UaHistoryUpdateResults &other) const |
Compare two UaHistoryUpdateResults. More... | |
bool | operator!= (const UaHistoryUpdateResults &other) const |
Compare two UaHistoryUpdateResults. More... | |
void | attach (OpcUa_UInt32 length, OpcUa_HistoryUpdateResult *data) |
Attach to a raw OpcUa_HistoryUpdateResult array. More... | |
void | attach (OpcUa_Int32 length, OpcUa_HistoryUpdateResult *data) |
Attach to a raw OpcUa_HistoryUpdateResult array. More... | |
OpcUa_HistoryUpdateResult * | detach () |
Detach from the internal OpcUa_HistoryUpdateResult array. More... | |
void | create (OpcUa_UInt32 length) |
Clears the array and resizes to the given length. More... | |
void | resize (OpcUa_UInt32 length) |
Resizes the array to a given length. More... | |
void | clear () |
Clears the array. | |
Array class for the UA stack structure OpcUa_HistoryUpdateResult.
This class encapsulates an array of the native OpcUa_HistoryUpdateResult structure and handles memory allocation and cleanup for you.
UaHistoryUpdateResults::UaHistoryUpdateResults | ( | const UaHistoryUpdateResults & | other | ) |
Constructs an instance of the class HistoryUpdateResults with values from another HistoryUpdateResults object.
other | the other HistoryUpdateResults used to initialize the object |
UaHistoryUpdateResults::UaHistoryUpdateResults | ( | OpcUa_Int32 | length, |
OpcUa_HistoryUpdateResult * | data | ||
) |
Constructs an instance of the class UaHistoryUpdateResult using a raw OpcUa_HistoryUpdateResult array.
length | the length of the raw OpcUa_HistoryUpdateResult array |
data | the raw OpcUa_HistoryUpdateResult array |
void UaHistoryUpdateResults::attach | ( | OpcUa_UInt32 | length, |
OpcUa_HistoryUpdateResult * | data | ||
) |
Attach to a raw OpcUa_HistoryUpdateResult array.
length | the length of the raw OpcUa_HistoryUpdateResult array |
data | the raw OpcUa_HistoryUpdateResult array |
void UaHistoryUpdateResults::attach | ( | OpcUa_Int32 | length, |
OpcUa_HistoryUpdateResult * | data | ||
) |
Attach to a raw OpcUa_HistoryUpdateResult array.
length | the length of the raw OpcUa_HistoryUpdateResult array |
data | the raw OpcUa_HistoryUpdateResult array |
void UaHistoryUpdateResults::create | ( | OpcUa_UInt32 | length | ) |
Clears the array and resizes to the given length.
length | the new length of the array |
OpcUa_HistoryUpdateResult * UaHistoryUpdateResults::detach | ( | ) |
Detach from the internal OpcUa_HistoryUpdateResult array.
After detaching, the detached array data will not be cleared automatically anymore.
bool UaHistoryUpdateResults::operator!= | ( | const UaHistoryUpdateResults & | other | ) | const |
Compare two UaHistoryUpdateResults.
other | the UaHistoryUpdateResults to compare with. |
UaHistoryUpdateResults & UaHistoryUpdateResults::operator= | ( | const UaHistoryUpdateResults & | other | ) |
Assignment operator.
other | the UaHistoryUpdateResults to assign. |
bool UaHistoryUpdateResults::operator== | ( | const UaHistoryUpdateResults & | other | ) | const |
Compare two UaHistoryUpdateResults.
other | the UaHistoryUpdateResults to compare with. |
const OpcUa_HistoryUpdateResult & UaHistoryUpdateResults::operator[] | ( | OpcUa_UInt32 | index | ) | const |
Index operator.
index | the index of the structure to return. |
OpcUa_HistoryUpdateResult & UaHistoryUpdateResults::operator[] | ( | OpcUa_UInt32 | index | ) |
Index operator.
index | the index of the structure to return. |
void UaHistoryUpdateResults::resize | ( | OpcUa_UInt32 | length | ) |
Resizes the array to a given length.
length | the new length of the array |