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

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

#include <uaserverdiagnosticssummarydatatype.h>

Public Member Functions

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

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

See also
UaServerDiagnosticsSummaryDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaServerDiagnosticsSummaryDataTypes::UaServerDiagnosticsSummaryDataTypes ( const UaServerDiagnosticsSummaryDataTypes other)

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

Parameters
otherthe other UaServerDiagnosticsSummaryDataTypes used to initialize the object
UaServerDiagnosticsSummaryDataTypes::UaServerDiagnosticsSummaryDataTypes ( OpcUa_Int32  length,
OpcUa_ServerDiagnosticsSummaryDataType data 
)

Constructs an instance of the class UaServerDiagnosticsSummaryDataTypes using a raw OpcUa_ServerDiagnosticsSummaryDataType array.

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

Member Function Documentation

void UaServerDiagnosticsSummaryDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_ServerDiagnosticsSummaryDataType data 
)

Attach to a raw OpcUa_ServerDiagnosticsSummaryDataType array.

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

Attach to a raw OpcUa_ServerDiagnosticsSummaryDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_ServerDiagnosticsSummaryDataType * UaServerDiagnosticsSummaryDataTypes::detach ( )

Detach from the internal OpcUa_ServerDiagnosticsSummaryDataType 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_ServerDiagnosticsSummaryDataType array
bool UaServerDiagnosticsSummaryDataTypes::operator!= ( const UaServerDiagnosticsSummaryDataTypes other) const

Compare two UaServerDiagnosticsSummaryDataTypes.

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

Assignment operator.

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

Compare two UaServerDiagnosticsSummaryDataTypes.

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

Index operator.

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

Index operator.

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