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