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

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

#include <uaenumvaluetype.h>

Public Member Functions

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

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

See also
UaEnumValueType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaEnumValueTypes::UaEnumValueTypes ( const UaEnumValueTypes other)

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

Parameters
otherthe other UaEnumValueTypes used to initialize the object
UaEnumValueTypes::UaEnumValueTypes ( OpcUa_Int32  length,
OpcUa_EnumValueType data 
)

Constructs an instance of the class UaEnumValueTypes using a raw OpcUa_EnumValueType array.

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

Member Function Documentation

void UaEnumValueTypes::attach ( OpcUa_UInt32  length,
OpcUa_EnumValueType data 
)

Attach to a raw OpcUa_EnumValueType array.

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

Attach to a raw OpcUa_EnumValueType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_EnumValueType * UaEnumValueTypes::detach ( )

Detach from the internal OpcUa_EnumValueType 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_EnumValueType array
bool UaEnumValueTypes::operator!= ( const UaEnumValueTypes other) const

Compare two UaEnumValueTypes.

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

Assignment operator.

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

Compare two UaEnumValueTypes.

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

Index operator.

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

Index operator.

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