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

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

#include <uasamplingintervaldiagnosticsdatatype.h>

Public Member Functions

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

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

See also
UaSamplingIntervalDiagnosticsDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaSamplingIntervalDiagnosticsDataTypes::UaSamplingIntervalDiagnosticsDataTypes ( const UaSamplingIntervalDiagnosticsDataTypes other)

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

Parameters
otherthe other UaSamplingIntervalDiagnosticsDataTypes used to initialize the object
UaSamplingIntervalDiagnosticsDataTypes::UaSamplingIntervalDiagnosticsDataTypes ( OpcUa_Int32  length,
OpcUa_SamplingIntervalDiagnosticsDataType data 
)

Constructs an instance of the class UaSamplingIntervalDiagnosticsDataTypes using a raw OpcUa_SamplingIntervalDiagnosticsDataType array.

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

Member Function Documentation

void UaSamplingIntervalDiagnosticsDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_SamplingIntervalDiagnosticsDataType data 
)

Attach to a raw OpcUa_SamplingIntervalDiagnosticsDataType array.

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

Attach to a raw OpcUa_SamplingIntervalDiagnosticsDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_SamplingIntervalDiagnosticsDataType * UaSamplingIntervalDiagnosticsDataTypes::detach ( )

Detach from the internal OpcUa_SamplingIntervalDiagnosticsDataType 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_SamplingIntervalDiagnosticsDataType array
bool UaSamplingIntervalDiagnosticsDataTypes::operator!= ( const UaSamplingIntervalDiagnosticsDataTypes other) const

Compare two UaSamplingIntervalDiagnosticsDataTypes.

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

Assignment operator.

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

Compare two UaSamplingIntervalDiagnosticsDataTypes.

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

Index operator.

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

Index operator.

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