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