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

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

#include <uacurrencyunittype.h>

Public Member Functions

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

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

See also
UaCurrencyUnitType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaCurrencyUnitTypes::UaCurrencyUnitTypes ( const UaCurrencyUnitTypes other)

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

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

Constructs an instance of the class UaCurrencyUnitTypes using a raw OpcUa_CurrencyUnitType array.

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

Member Function Documentation

void UaCurrencyUnitTypes::attach ( OpcUa_UInt32  length,
OpcUa_CurrencyUnitType *  data 
)

Attach to a raw OpcUa_CurrencyUnitType array.

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

Attach to a raw OpcUa_CurrencyUnitType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_CurrencyUnitType * UaCurrencyUnitTypes::detach ( )

Detach from the internal OpcUa_CurrencyUnitType 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_CurrencyUnitType array
bool UaCurrencyUnitTypes::operator!= ( const UaCurrencyUnitTypes other) const

Compare two UaCurrencyUnitTypes.

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

Assignment operator.

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

Compare two UaCurrencyUnitTypes.

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

Index operator.

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

Index operator.

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