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

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

#include <uadatasetwriterdatatype.h>

Public Member Functions

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

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

See also
UaDataSetWriterDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaDataSetWriterDataTypes::UaDataSetWriterDataTypes ( const UaDataSetWriterDataTypes other)

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

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

Constructs an instance of the class UaDataSetWriterDataTypes using a raw OpcUa_DataSetWriterDataType array.

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

Member Function Documentation

void UaDataSetWriterDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_DataSetWriterDataType *  data 
)

Attach to a raw OpcUa_DataSetWriterDataType array.

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

Attach to a raw OpcUa_DataSetWriterDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_DataSetWriterDataType * UaDataSetWriterDataTypes::detach ( )

Detach from the internal OpcUa_DataSetWriterDataType 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_DataSetWriterDataType array
bool UaDataSetWriterDataTypes::operator!= ( const UaDataSetWriterDataTypes other) const

Compare two UaDataSetWriterDataTypes.

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

Assignment operator.

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

Compare two UaDataSetWriterDataTypes.

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

Index operator.

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

Index operator.

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