C++ Based OPC UA Client/Server/PubSub SDK  1.7.2.493
UaConfigurationVersionDataTypes Class Reference

Array class for the UA stack structure OpcUa_ConfigurationVersionDataType. More...

#include <uaconfigurationversiondatatype.h>

Public Member Functions

 UaConfigurationVersionDataTypes ()
 Constructs an empty instance of the class UaConfigurationVersionDataTypes.
 
 UaConfigurationVersionDataTypes (const UaConfigurationVersionDataTypes &other)
 Constructs an instance of the class UaConfigurationVersionDataTypes with values from another UaConfigurationVersionDataTypes object. More...
 
 UaConfigurationVersionDataTypes (OpcUa_Int32 length, OpcUa_ConfigurationVersionDataType *data)
 Constructs an instance of the class UaConfigurationVersionDataTypes using a raw OpcUa_ConfigurationVersionDataType array. More...
 
virtual ~UaConfigurationVersionDataTypes ()
 Destroys the UaConfigurationVersionDataTypes object.
 
UaConfigurationVersionDataTypesoperator= (const UaConfigurationVersionDataTypes &other)
 Assignment operator. More...
 
const
OpcUa_ConfigurationVersionDataType & 
operator[] (OpcUa_UInt32 index) const
 Index operator. More...
 
OpcUa_ConfigurationVersionDataType & operator[] (OpcUa_UInt32 index)
 Index operator. More...
 
bool operator== (const UaConfigurationVersionDataTypes &other) const
 Compare two UaConfigurationVersionDataTypes. More...
 
bool operator!= (const UaConfigurationVersionDataTypes &other) const
 Compare two UaConfigurationVersionDataTypes. More...
 
void attach (OpcUa_UInt32 length, OpcUa_ConfigurationVersionDataType *data)
 Attach to a raw OpcUa_ConfigurationVersionDataType array. More...
 
void attach (OpcUa_Int32 length, OpcUa_ConfigurationVersionDataType *data)
 Attach to a raw OpcUa_ConfigurationVersionDataType array. More...
 
OpcUa_ConfigurationVersionDataType * detach ()
 Detach from the internal OpcUa_ConfigurationVersionDataType 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_ConfigurationVersionDataType.

This class encapsulates an array of the native OpcUa_ConfigurationVersionDataType structure and handles memory allocation and cleanup for you.

See also
UaConfigurationVersionDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaConfigurationVersionDataTypes::UaConfigurationVersionDataTypes ( const UaConfigurationVersionDataTypes other)

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

Parameters
otherthe other UaConfigurationVersionDataTypes used to initialize the object
UaConfigurationVersionDataTypes::UaConfigurationVersionDataTypes ( OpcUa_Int32  length,
OpcUa_ConfigurationVersionDataType *  data 
)

Constructs an instance of the class UaConfigurationVersionDataTypes using a raw OpcUa_ConfigurationVersionDataType array.

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

Member Function Documentation

void UaConfigurationVersionDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_ConfigurationVersionDataType *  data 
)

Attach to a raw OpcUa_ConfigurationVersionDataType array.

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

Attach to a raw OpcUa_ConfigurationVersionDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_ConfigurationVersionDataType * UaConfigurationVersionDataTypes::detach ( )

Detach from the internal OpcUa_ConfigurationVersionDataType 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_ConfigurationVersionDataType array
bool UaConfigurationVersionDataTypes::operator!= ( const UaConfigurationVersionDataTypes other) const

Compare two UaConfigurationVersionDataTypes.

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

Assignment operator.

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

Compare two UaConfigurationVersionDataTypes.

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

Index operator.

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

Index operator.

Parameters
indexthe index of the structure to return.
void UaConfigurationVersionDataTypes::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: