C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uasoftwarecertificate.h>

Public Member Functions

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

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

See also
UaSoftwareCertificate for information about the encapsulated structure.

Constructor & Destructor Documentation

UaSoftwareCertificates::UaSoftwareCertificates ( const UaSoftwareCertificates other)

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

Parameters
otherthe other UaSoftwareCertificates used to initialize the object
UaSoftwareCertificates::UaSoftwareCertificates ( OpcUa_Int32  length,
OpcUa_SoftwareCertificate data 
)

Constructs an instance of the class UaSoftwareCertificates using a raw OpcUa_SoftwareCertificate array.

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

Member Function Documentation

void UaSoftwareCertificates::attach ( OpcUa_UInt32  length,
OpcUa_SoftwareCertificate data 
)

Attach to a raw OpcUa_SoftwareCertificate array.

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

Attach to a raw OpcUa_SoftwareCertificate array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_SoftwareCertificate * UaSoftwareCertificates::detach ( )

Detach from the internal OpcUa_SoftwareCertificate 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_SoftwareCertificate array
bool UaSoftwareCertificates::operator!= ( const UaSoftwareCertificates other) const

Compare two UaSoftwareCertificates.

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

Assignment operator.

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

Compare two UaSoftwareCertificates.

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

Index operator.

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

Index operator.

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