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