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