C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uaxvtype.h>

Public Member Functions

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

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

See also
UaXVType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaXVTypes::UaXVTypes ( const UaXVTypes other)

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

Parameters
otherthe other UaXVTypes used to initialize the object
UaXVTypes::UaXVTypes ( OpcUa_Int32  length,
OpcUa_XVType data 
)

Constructs an instance of the class UaXVTypes using a raw OpcUa_XVType array.

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

Member Function Documentation

void UaXVTypes::attach ( OpcUa_UInt32  length,
OpcUa_XVType data 
)

Attach to a raw OpcUa_XVType array.

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

Attach to a raw OpcUa_XVType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_XVType * UaXVTypes::detach ( )

Detach from the internal OpcUa_XVType 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_XVType array
bool UaXVTypes::operator!= ( const UaXVTypes other) const

Compare two UaXVTypes.

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

Assignment operator.

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

Compare two UaXVTypes.

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

Index operator.

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

Index operator.

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