C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uaserverstatusdatatype.h>

Public Member Functions

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

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

See also
UaServerStatusDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaServerStatusDataTypes::UaServerStatusDataTypes ( const UaServerStatusDataTypes other)

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

Parameters
otherthe other UaServerStatusDataTypes used to initialize the object
UaServerStatusDataTypes::UaServerStatusDataTypes ( OpcUa_Int32  length,
OpcUa_ServerStatusDataType data 
)

Constructs an instance of the class UaServerStatusDataTypes using a raw OpcUa_ServerStatusDataType array.

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

Member Function Documentation

void UaServerStatusDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_ServerStatusDataType data 
)

Attach to a raw OpcUa_ServerStatusDataType array.

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

Attach to a raw OpcUa_ServerStatusDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_ServerStatusDataType * UaServerStatusDataTypes::detach ( )

Detach from the internal OpcUa_ServerStatusDataType 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_ServerStatusDataType array
bool UaServerStatusDataTypes::operator!= ( const UaServerStatusDataTypes other) const

Compare two UaServerStatusDataTypes.

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

Assignment operator.

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

Compare two UaServerStatusDataTypes.

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

Index operator.

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

Index operator.

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