C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537

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

#include <uaendpointtype.h>

Public Member Functions

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

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

See also
UaEndpointType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaEndpointTypes::UaEndpointTypes ( const UaEndpointTypes other)

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

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

Constructs an instance of the class UaEndpointTypes using a raw OpcUa_EndpointType array.

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

Member Function Documentation

void UaEndpointTypes::attach ( OpcUa_UInt32  length,
OpcUa_EndpointType *  data 
)

Attach to a raw OpcUa_EndpointType array.

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

Attach to a raw OpcUa_EndpointType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_EndpointType * UaEndpointTypes::detach ( )

Detach from the internal OpcUa_EndpointType 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_EndpointType array
bool UaEndpointTypes::operator!= ( const UaEndpointTypes other) const

Compare two UaEndpointTypes.

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

Assignment operator.

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

Compare two UaEndpointTypes.

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

Index operator.

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

Index operator.

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