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