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