C++ Based OPC UA Client/Server SDK  1.5.5.355
UaSessionDiagnosticsDataTypes Class Reference

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

#include <uasessiondiagnosticsdatatype.h>

Public Member Functions

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

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

See also
UaSessionDiagnosticsDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaSessionDiagnosticsDataTypes::UaSessionDiagnosticsDataTypes ( const UaSessionDiagnosticsDataTypes other)

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

Parameters
otherthe other UaSessionDiagnosticsDataTypes used to initialize the object
UaSessionDiagnosticsDataTypes::UaSessionDiagnosticsDataTypes ( OpcUa_Int32  length,
OpcUa_SessionDiagnosticsDataType data 
)

Constructs an instance of the class UaSessionDiagnosticsDataTypes using a raw OpcUa_SessionDiagnosticsDataType array.

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

Member Function Documentation

void UaSessionDiagnosticsDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_SessionDiagnosticsDataType data 
)

Attach to a raw OpcUa_SessionDiagnosticsDataType array.

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

Attach to a raw OpcUa_SessionDiagnosticsDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_SessionDiagnosticsDataType * UaSessionDiagnosticsDataTypes::detach ( )

Detach from the internal OpcUa_SessionDiagnosticsDataType 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_SessionDiagnosticsDataType array
bool UaSessionDiagnosticsDataTypes::operator!= ( const UaSessionDiagnosticsDataTypes other) const

Compare two UaSessionDiagnosticsDataTypes.

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

Assignment operator.

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

Compare two UaSessionDiagnosticsDataTypes.

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

Index operator.

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

Index operator.

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