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

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

#include <uasessionsecuritydiagnosticsdatatype.h>

Public Member Functions

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

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

See also
UaSessionSecurityDiagnosticsDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaSessionSecurityDiagnosticsDataTypes::UaSessionSecurityDiagnosticsDataTypes ( const UaSessionSecurityDiagnosticsDataTypes other)

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

Parameters
otherthe other UaSessionSecurityDiagnosticsDataTypes used to initialize the object
UaSessionSecurityDiagnosticsDataTypes::UaSessionSecurityDiagnosticsDataTypes ( OpcUa_Int32  length,
OpcUa_SessionSecurityDiagnosticsDataType data 
)

Constructs an instance of the class UaSessionSecurityDiagnosticsDataTypes using a raw OpcUa_SessionSecurityDiagnosticsDataType array.

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

Member Function Documentation

void UaSessionSecurityDiagnosticsDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_SessionSecurityDiagnosticsDataType data 
)

Attach to a raw OpcUa_SessionSecurityDiagnosticsDataType array.

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

Attach to a raw OpcUa_SessionSecurityDiagnosticsDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_SessionSecurityDiagnosticsDataType * UaSessionSecurityDiagnosticsDataTypes::detach ( )

Detach from the internal OpcUa_SessionSecurityDiagnosticsDataType 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_SessionSecurityDiagnosticsDataType array
bool UaSessionSecurityDiagnosticsDataTypes::operator!= ( const UaSessionSecurityDiagnosticsDataTypes other) const

Compare two UaSessionSecurityDiagnosticsDataTypes.

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

Assignment operator.

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

Compare two UaSessionSecurityDiagnosticsDataTypes.

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

Index operator.

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

Index operator.

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