C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uatimezonedatatype.h>

Public Member Functions

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

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

See also
UaTimeZoneDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaTimeZoneDataTypes::UaTimeZoneDataTypes ( const UaTimeZoneDataTypes other)

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

Parameters
otherthe other UaTimeZoneDataTypes used to initialize the object
UaTimeZoneDataTypes::UaTimeZoneDataTypes ( OpcUa_Int32  length,
OpcUa_TimeZoneDataType data 
)

Constructs an instance of the class UaTimeZoneDataTypes using a raw OpcUa_TimeZoneDataType array.

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

Member Function Documentation

void UaTimeZoneDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_TimeZoneDataType data 
)

Attach to a raw OpcUa_TimeZoneDataType array.

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

Attach to a raw OpcUa_TimeZoneDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_TimeZoneDataType * UaTimeZoneDataTypes::detach ( )

Detach from the internal OpcUa_TimeZoneDataType 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_TimeZoneDataType array
bool UaTimeZoneDataTypes::operator!= ( const UaTimeZoneDataTypes other) const

Compare two UaTimeZoneDataTypes.

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

Assignment operator.

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

Compare two UaTimeZoneDataTypes.

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

Index operator.

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

Index operator.

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