C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uanetworkgroupdatatype.h>

Public Member Functions

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

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

See also
UaNetworkGroupDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaNetworkGroupDataTypes::UaNetworkGroupDataTypes ( const UaNetworkGroupDataTypes other)

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

Parameters
otherthe other UaNetworkGroupDataTypes used to initialize the object
UaNetworkGroupDataTypes::UaNetworkGroupDataTypes ( OpcUa_Int32  length,
OpcUa_NetworkGroupDataType data 
)

Constructs an instance of the class UaNetworkGroupDataTypes using a raw OpcUa_NetworkGroupDataType array.

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

Member Function Documentation

void UaNetworkGroupDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_NetworkGroupDataType data 
)

Attach to a raw OpcUa_NetworkGroupDataType array.

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

Attach to a raw OpcUa_NetworkGroupDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_NetworkGroupDataType * UaNetworkGroupDataTypes::detach ( )

Detach from the internal OpcUa_NetworkGroupDataType 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_NetworkGroupDataType array
bool UaNetworkGroupDataTypes::operator!= ( const UaNetworkGroupDataTypes other) const

Compare two UaNetworkGroupDataTypes.

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

Assignment operator.

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

Compare two UaNetworkGroupDataTypes.

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

Index operator.

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

Index operator.

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