C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uaarraytemplates.h>

Public Member Functions

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

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

Constructor & Destructor Documentation

UaModificationInfos::UaModificationInfos ( const UaModificationInfos other)

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

Parameters
otherthe other ModificationInfos used to initialize the object
UaModificationInfos::UaModificationInfos ( OpcUa_Int32  length,
OpcUa_ModificationInfo *  data 
)

Constructs an instance of the class UaModificationInfo using a raw OpcUa_ModificationInfo array.

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

Member Function Documentation

void UaModificationInfos::attach ( OpcUa_UInt32  length,
OpcUa_ModificationInfo *  data 
)

Attach to a raw OpcUa_ModificationInfo array.

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

Attach to a raw OpcUa_ModificationInfo array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_ModificationInfo * UaModificationInfos::detach ( )

Detach from the internal OpcUa_ModificationInfo 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_ModificationInfo array
bool UaModificationInfos::operator!= ( const UaModificationInfos other) const

Compare two UaModificationInfos.

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

Assignment operator.

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

Compare two UaModificationInfos.

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

Index operator.

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

Index operator.

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