C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uaregisteredserver.h>

Public Member Functions

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

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

See also
UaRegisteredServer for information about the encapsulated structure.

Constructor & Destructor Documentation

UaRegisteredServers::UaRegisteredServers ( const UaRegisteredServers other)

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

Parameters
otherthe other UaRegisteredServers used to initialize the object
UaRegisteredServers::UaRegisteredServers ( OpcUa_Int32  length,
OpcUa_RegisteredServer data 
)

Constructs an instance of the class UaRegisteredServers using a raw OpcUa_RegisteredServer array.

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

Member Function Documentation

void UaRegisteredServers::attach ( OpcUa_UInt32  length,
OpcUa_RegisteredServer data 
)

Attach to a raw OpcUa_RegisteredServer array.

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

Attach to a raw OpcUa_RegisteredServer array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_RegisteredServer * UaRegisteredServers::detach ( )

Detach from the internal OpcUa_RegisteredServer 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_RegisteredServer array
bool UaRegisteredServers::operator!= ( const UaRegisteredServers other) const

Compare two UaRegisteredServers.

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

Assignment operator.

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

Compare two UaRegisteredServers.

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

Index operator.

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

Index operator.

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