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

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

#include <uauabinaryfiledatatype.h>

Public Member Functions

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

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

See also
UaUABinaryFileDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaUABinaryFileDataTypes::UaUABinaryFileDataTypes ( const UaUABinaryFileDataTypes other)

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

Parameters
otherthe other UaUABinaryFileDataTypes used to initialize the object
UaUABinaryFileDataTypes::UaUABinaryFileDataTypes ( OpcUa_Int32  length,
OpcUa_UABinaryFileDataType *  data 
)

Constructs an instance of the class UaUABinaryFileDataTypes using a raw OpcUa_UABinaryFileDataType array.

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

Member Function Documentation

void UaUABinaryFileDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_UABinaryFileDataType *  data 
)

Attach to a raw OpcUa_UABinaryFileDataType array.

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

Attach to a raw OpcUa_UABinaryFileDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_UABinaryFileDataType * UaUABinaryFileDataTypes::detach ( )

Detach from the internal OpcUa_UABinaryFileDataType 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_UABinaryFileDataType array
bool UaUABinaryFileDataTypes::operator!= ( const UaUABinaryFileDataTypes other) const

Compare two UaUABinaryFileDataTypes.

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

Assignment operator.

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

Compare two UaUABinaryFileDataTypes.

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

Index operator.

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

Index operator.

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