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

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

#include <uaeuinformation.h>

Public Member Functions

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

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

See also
UaEUInformation for information about the encapsulated structure.

Constructor & Destructor Documentation

UaEUInformations::UaEUInformations ( const UaEUInformations other)

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

Parameters
otherthe other UaEUInformations used to initialize the object
UaEUInformations::UaEUInformations ( OpcUa_Int32  length,
OpcUa_EUInformation data 
)

Constructs an instance of the class UaEUInformations using a raw OpcUa_EUInformation array.

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

Member Function Documentation

void UaEUInformations::attach ( OpcUa_UInt32  length,
OpcUa_EUInformation data 
)

Attach to a raw OpcUa_EUInformation array.

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

Attach to a raw OpcUa_EUInformation array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_EUInformation * UaEUInformations::detach ( )

Detach from the internal OpcUa_EUInformation 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_EUInformation array
bool UaEUInformations::operator!= ( const UaEUInformations other) const

Compare two UaEUInformations.

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

Assignment operator.

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

Compare two UaEUInformations.

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

Index operator.

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

Index operator.

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