C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537
UaPublishedDataSetDataTypes Class Reference

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

#include <uapublisheddatasetdatatype.h>

Public Member Functions

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

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

See also
UaPublishedDataSetDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaPublishedDataSetDataTypes::UaPublishedDataSetDataTypes ( const UaPublishedDataSetDataTypes other)

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

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

Constructs an instance of the class UaPublishedDataSetDataTypes using a raw OpcUa_PublishedDataSetDataType array.

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

Member Function Documentation

void UaPublishedDataSetDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_PublishedDataSetDataType *  data 
)

Attach to a raw OpcUa_PublishedDataSetDataType array.

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

Attach to a raw OpcUa_PublishedDataSetDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_PublishedDataSetDataType * UaPublishedDataSetDataTypes::detach ( )

Detach from the internal OpcUa_PublishedDataSetDataType 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_PublishedDataSetDataType array
bool UaPublishedDataSetDataTypes::operator!= ( const UaPublishedDataSetDataTypes other) const

Compare two UaPublishedDataSetDataTypes.

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

Assignment operator.

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

Compare two UaPublishedDataSetDataTypes.

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

Index operator.

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

Index operator.

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