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

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

#include <uaprogramdiagnostic2datatype.h>

Public Member Functions

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

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

See also
UaProgramDiagnostic2DataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaProgramDiagnostic2DataTypes::UaProgramDiagnostic2DataTypes ( const UaProgramDiagnostic2DataTypes other)

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

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

Constructs an instance of the class UaProgramDiagnostic2DataTypes using a raw OpcUa_ProgramDiagnostic2DataType array.

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

Member Function Documentation

void UaProgramDiagnostic2DataTypes::attach ( OpcUa_UInt32  length,
OpcUa_ProgramDiagnostic2DataType *  data 
)

Attach to a raw OpcUa_ProgramDiagnostic2DataType array.

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

Attach to a raw OpcUa_ProgramDiagnostic2DataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_ProgramDiagnostic2DataType * UaProgramDiagnostic2DataTypes::detach ( )

Detach from the internal OpcUa_ProgramDiagnostic2DataType 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_ProgramDiagnostic2DataType array
bool UaProgramDiagnostic2DataTypes::operator!= ( const UaProgramDiagnostic2DataTypes other) const

Compare two UaProgramDiagnostic2DataTypes.

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

Assignment operator.

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

Compare two UaProgramDiagnostic2DataTypes.

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

Index operator.

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

Index operator.

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