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

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

#include <uaendpointurllistdatatype.h>

Public Member Functions

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

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

See also
UaEndpointUrlListDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaEndpointUrlListDataTypes::UaEndpointUrlListDataTypes ( const UaEndpointUrlListDataTypes other)

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

Parameters
otherthe other UaEndpointUrlListDataTypes used to initialize the object
UaEndpointUrlListDataTypes::UaEndpointUrlListDataTypes ( OpcUa_Int32  length,
OpcUa_EndpointUrlListDataType data 
)

Constructs an instance of the class UaEndpointUrlListDataTypes using a raw OpcUa_EndpointUrlListDataType array.

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

Member Function Documentation

void UaEndpointUrlListDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_EndpointUrlListDataType data 
)

Attach to a raw OpcUa_EndpointUrlListDataType array.

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

Attach to a raw OpcUa_EndpointUrlListDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_EndpointUrlListDataType * UaEndpointUrlListDataTypes::detach ( )

Detach from the internal OpcUa_EndpointUrlListDataType 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_EndpointUrlListDataType array
bool UaEndpointUrlListDataTypes::operator!= ( const UaEndpointUrlListDataTypes other) const

Compare two UaEndpointUrlListDataTypes.

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

Assignment operator.

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

Compare two UaEndpointUrlListDataTypes.

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

Index operator.

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

Index operator.

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