C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uaserveronnetwork.h>

Public Member Functions

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

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

See also
UaServerOnNetwork for information about the encapsulated structure.

Constructor & Destructor Documentation

UaServerOnNetworks::UaServerOnNetworks ( const UaServerOnNetworks other)

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

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

Constructs an instance of the class UaServerOnNetworks using a raw OpcUa_ServerOnNetwork array.

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

Member Function Documentation

void UaServerOnNetworks::attach ( OpcUa_UInt32  length,
OpcUa_ServerOnNetwork *  data 
)

Attach to a raw OpcUa_ServerOnNetwork array.

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

Attach to a raw OpcUa_ServerOnNetwork array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_ServerOnNetwork * UaServerOnNetworks::detach ( )

Detach from the internal OpcUa_ServerOnNetwork 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_ServerOnNetwork array
bool UaServerOnNetworks::operator!= ( const UaServerOnNetworks other) const

Compare two UaServerOnNetworks.

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

Assignment operator.

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

Compare two UaServerOnNetworks.

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

Index operator.

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

Index operator.

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