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

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

#include <uajsondatasetreadermessagedatatype.h>

Public Member Functions

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

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

See also
UaJsonDataSetReaderMessageDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaJsonDataSetReaderMessageDataTypes::UaJsonDataSetReaderMessageDataTypes ( const UaJsonDataSetReaderMessageDataTypes other)

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

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

Constructs an instance of the class UaJsonDataSetReaderMessageDataTypes using a raw OpcUa_JsonDataSetReaderMessageDataType array.

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

Member Function Documentation

void UaJsonDataSetReaderMessageDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_JsonDataSetReaderMessageDataType *  data 
)

Attach to a raw OpcUa_JsonDataSetReaderMessageDataType array.

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

Attach to a raw OpcUa_JsonDataSetReaderMessageDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_JsonDataSetReaderMessageDataType * UaJsonDataSetReaderMessageDataTypes::detach ( )

Detach from the internal OpcUa_JsonDataSetReaderMessageDataType 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_JsonDataSetReaderMessageDataType array
bool UaJsonDataSetReaderMessageDataTypes::operator!= ( const UaJsonDataSetReaderMessageDataTypes other) const

Compare two UaJsonDataSetReaderMessageDataTypes.

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

Assignment operator.

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

Compare two UaJsonDataSetReaderMessageDataTypes.

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

Index operator.

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

Index operator.

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