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

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

#include <uanetworkaddressurldatatype.h>

Public Member Functions

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

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

See also
UaNetworkAddressUrlDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaNetworkAddressUrlDataTypes::UaNetworkAddressUrlDataTypes ( const UaNetworkAddressUrlDataTypes other)

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

Parameters
otherthe other UaNetworkAddressUrlDataTypes used to initialize the object
UaNetworkAddressUrlDataTypes::UaNetworkAddressUrlDataTypes ( OpcUa_Int32  length,
OpcUa_NetworkAddressUrlDataType *  data 
)

Constructs an instance of the class UaNetworkAddressUrlDataTypes using a raw OpcUa_NetworkAddressUrlDataType array.

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

Member Function Documentation

void UaNetworkAddressUrlDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_NetworkAddressUrlDataType *  data 
)

Attach to a raw OpcUa_NetworkAddressUrlDataType array.

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

Attach to a raw OpcUa_NetworkAddressUrlDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_NetworkAddressUrlDataType * UaNetworkAddressUrlDataTypes::detach ( )

Detach from the internal OpcUa_NetworkAddressUrlDataType 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_NetworkAddressUrlDataType array
bool UaNetworkAddressUrlDataTypes::operator!= ( const UaNetworkAddressUrlDataTypes other) const

Compare two UaNetworkAddressUrlDataTypes.

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

Assignment operator.

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

Compare two UaNetworkAddressUrlDataTypes.

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

Index operator.

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

Index operator.

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