C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537
UaRedundantServerDataTypes Class Reference

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

#include <uaredundantserverdatatype.h>

Public Member Functions

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

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

See also
UaRedundantServerDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaRedundantServerDataTypes::UaRedundantServerDataTypes ( const UaRedundantServerDataTypes other)

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

Parameters
otherthe other UaRedundantServerDataTypes used to initialize the object
UaRedundantServerDataTypes::UaRedundantServerDataTypes ( OpcUa_Int32  length,
OpcUa_RedundantServerDataType data 
)

Constructs an instance of the class UaRedundantServerDataTypes using a raw OpcUa_RedundantServerDataType array.

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

Member Function Documentation

void UaRedundantServerDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_RedundantServerDataType data 
)

Attach to a raw OpcUa_RedundantServerDataType array.

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

Attach to a raw OpcUa_RedundantServerDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_RedundantServerDataType * UaRedundantServerDataTypes::detach ( )

Detach from the internal OpcUa_RedundantServerDataType 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_RedundantServerDataType array
bool UaRedundantServerDataTypes::operator!= ( const UaRedundantServerDataTypes other) const

Compare two UaRedundantServerDataTypes.

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

Assignment operator.

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

Compare two UaRedundantServerDataTypes.

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

Index operator.

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

Index operator.

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