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