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