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