C++ Based OPC UA Client/Server SDK  1.5.5.355
UaSemanticChangeStructureDataTypes Class Reference

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

#include <uasemanticchangestructuredatatype.h>

Public Member Functions

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

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

See also
UaSemanticChangeStructureDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaSemanticChangeStructureDataTypes::UaSemanticChangeStructureDataTypes ( const UaSemanticChangeStructureDataTypes other)

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

Parameters
otherthe other UaSemanticChangeStructureDataTypes used to initialize the object
UaSemanticChangeStructureDataTypes::UaSemanticChangeStructureDataTypes ( OpcUa_Int32  length,
OpcUa_SemanticChangeStructureDataType data 
)

Constructs an instance of the class UaSemanticChangeStructureDataTypes using a raw OpcUa_SemanticChangeStructureDataType array.

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

Member Function Documentation

void UaSemanticChangeStructureDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_SemanticChangeStructureDataType data 
)

Attach to a raw OpcUa_SemanticChangeStructureDataType array.

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

Attach to a raw OpcUa_SemanticChangeStructureDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_SemanticChangeStructureDataType * UaSemanticChangeStructureDataTypes::detach ( )

Detach from the internal OpcUa_SemanticChangeStructureDataType 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_SemanticChangeStructureDataType array
bool UaSemanticChangeStructureDataTypes::operator!= ( const UaSemanticChangeStructureDataTypes other) const

Compare two UaSemanticChangeStructureDataTypes.

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

Assignment operator.

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

Compare two UaSemanticChangeStructureDataTypes.

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

Index operator.

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

Index operator.

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