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

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

#include <uawritergroupdatatype.h>

Public Member Functions

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

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

See also
UaWriterGroupDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaWriterGroupDataTypes::UaWriterGroupDataTypes ( const UaWriterGroupDataTypes other)

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

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

Constructs an instance of the class UaWriterGroupDataTypes using a raw OpcUa_WriterGroupDataType array.

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

Member Function Documentation

void UaWriterGroupDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_WriterGroupDataType *  data 
)

Attach to a raw OpcUa_WriterGroupDataType array.

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

Attach to a raw OpcUa_WriterGroupDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_WriterGroupDataType * UaWriterGroupDataTypes::detach ( )

Detach from the internal OpcUa_WriterGroupDataType 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_WriterGroupDataType array
bool UaWriterGroupDataTypes::operator!= ( const UaWriterGroupDataTypes other) const

Compare two UaWriterGroupDataTypes.

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

Assignment operator.

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

Compare two UaWriterGroupDataTypes.

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

Index operator.

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

Index operator.

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