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

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

#include <uaarraytemplates.h>

Public Member Functions

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

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

Constructor & Destructor Documentation

UaEventFieldLists::UaEventFieldLists ( const UaEventFieldLists other)

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

Parameters
otherthe other EventFieldLists used to initialize the object
UaEventFieldLists::UaEventFieldLists ( OpcUa_Int32  length,
OpcUa_EventFieldList *  data 
)

Constructs an instance of the class UaEventFieldList using a raw OpcUa_EventFieldList array.

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

Member Function Documentation

void UaEventFieldLists::attach ( OpcUa_UInt32  length,
OpcUa_EventFieldList *  data 
)

Attach to a raw OpcUa_EventFieldList array.

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

Attach to a raw OpcUa_EventFieldList array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_EventFieldList * UaEventFieldLists::detach ( )

Detach from the internal OpcUa_EventFieldList 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_EventFieldList array
bool UaEventFieldLists::operator!= ( const UaEventFieldLists other) const

Compare two UaEventFieldLists.

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

Assignment operator.

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

Compare two UaEventFieldLists.

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

Index operator.

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

Index operator.

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