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