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