C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537

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.
 
UaParsingResultsoperator= (const UaParsingResults &other)
 Assignment operator. More...
 
const OpcUa_ParsingResultoperator[] (OpcUa_UInt32 index) const
 Index operator. More...
 
OpcUa_ParsingResultoperator[] (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_ParsingResultdetach ()
 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

UaParsingResults::UaParsingResults ( const UaParsingResults other)

Constructs an instance of the class ParsingResults with values from another ParsingResults object.

Parameters
otherthe 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.

Parameters
lengththe length of the raw OpcUa_ParsingResult array
datathe raw OpcUa_ParsingResult array

Member Function Documentation

void UaParsingResults::attach ( OpcUa_UInt32  length,
OpcUa_ParsingResult data 
)

Attach to a raw OpcUa_ParsingResult array.

Note
Don't manually free the attached data afterwards, because UaParsingResults is responsible for it now.
Parameters
lengththe length of the raw OpcUa_ParsingResult array
datathe raw OpcUa_ParsingResult array
void UaParsingResults::attach ( OpcUa_Int32  length,
OpcUa_ParsingResult data 
)

Attach to a raw OpcUa_ParsingResult array.

Note
Don't manually free the attached data afterwards, because UaParsingResults is responsible for it now.
Parameters
lengththe length of the raw OpcUa_ParsingResult array
datathe raw OpcUa_ParsingResult array
void UaParsingResults::create ( OpcUa_UInt32  length)

Clears the array and resizes to the given length.

Parameters
lengththe 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.

Note
Remember to retrieve the length of the array before detaching.
Returns
the detached OpcUa_ParsingResult array
bool UaParsingResults::operator!= ( const UaParsingResults other) const

Compare two UaParsingResults.

See also
operator==
Parameters
otherthe UaParsingResults to compare with.
Returns
true if not equal, false otherwise.
UaParsingResults & UaParsingResults::operator= ( const UaParsingResults other)

Assignment operator.

Parameters
otherthe UaParsingResults to assign.
bool UaParsingResults::operator== ( const UaParsingResults other) const

Compare two UaParsingResults.

Parameters
otherthe UaParsingResults to compare with.
Returns
true if equal, false if not.
const OpcUa_ParsingResult & UaParsingResults::operator[] ( OpcUa_UInt32  index) const

Index operator.

Parameters
indexthe index of the structure to return.
OpcUa_ParsingResult & UaParsingResults::operator[] ( OpcUa_UInt32  index)

Index operator.

Parameters
indexthe index of the structure to return.
void UaParsingResults::resize ( OpcUa_UInt32  length)

Resizes the array to a given length.

Parameters
lengththe new length of the array

The documentation for this class was generated from the following files: