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

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

#include <uajsonwritergroupmessagedatatype.h>

Public Member Functions

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

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

See also
UaJsonWriterGroupMessageDataType for information about the encapsulated structure.

Constructor & Destructor Documentation

UaJsonWriterGroupMessageDataTypes::UaJsonWriterGroupMessageDataTypes ( const UaJsonWriterGroupMessageDataTypes other)

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

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

Constructs an instance of the class UaJsonWriterGroupMessageDataTypes using a raw OpcUa_JsonWriterGroupMessageDataType array.

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

Member Function Documentation

void UaJsonWriterGroupMessageDataTypes::attach ( OpcUa_UInt32  length,
OpcUa_JsonWriterGroupMessageDataType *  data 
)

Attach to a raw OpcUa_JsonWriterGroupMessageDataType array.

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

Attach to a raw OpcUa_JsonWriterGroupMessageDataType array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_JsonWriterGroupMessageDataType * UaJsonWriterGroupMessageDataTypes::detach ( )

Detach from the internal OpcUa_JsonWriterGroupMessageDataType 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_JsonWriterGroupMessageDataType array
bool UaJsonWriterGroupMessageDataTypes::operator!= ( const UaJsonWriterGroupMessageDataTypes other) const

Compare two UaJsonWriterGroupMessageDataTypes.

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

Assignment operator.

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

Compare two UaJsonWriterGroupMessageDataTypes.

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

Index operator.

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

Index operator.

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