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

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

#include <uafieldtargetdatatype.h>

Public Member Functions

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

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

See also
UaFieldTargetDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaFieldTargetDataTypes::UaFieldTargetDataTypes ( const UaFieldTargetDataTypes other)

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

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

Constructs an instance of the class UaFieldTargetDataTypes using a raw OpcUa_FieldTargetDataType array.

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

Member Function Documentation

void UaFieldTargetDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_FieldTargetDataType *  data 
)

Attach to a raw OpcUa_FieldTargetDataType array.

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

Attach to a raw OpcUa_FieldTargetDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_FieldTargetDataType * UaFieldTargetDataTypes::detach ( )

Detach from the internal OpcUa_FieldTargetDataType 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_FieldTargetDataType array
bool UaFieldTargetDataTypes::operator!= ( const UaFieldTargetDataTypes other) const

Compare two UaFieldTargetDataTypes.

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

Assignment operator.

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

Compare two UaFieldTargetDataTypes.

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

Index operator.

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

Index operator.

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