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