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