C++ Based OPC UA Client/Server SDK  1.5.5.355

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

#include <uasupportedprofile.h>

Public Member Functions

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

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

See also
UaSupportedProfile for information about the encapsulated structure.

Constructor & Destructor Documentation

UaSupportedProfiles::UaSupportedProfiles ( const UaSupportedProfiles other)

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

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

Constructs an instance of the class UaSupportedProfiles using a raw OpcUa_SupportedProfile array.

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

Member Function Documentation

void UaSupportedProfiles::attach ( OpcUa_UInt32  length,
OpcUa_SupportedProfile *  data 
)

Attach to a raw OpcUa_SupportedProfile array.

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

Attach to a raw OpcUa_SupportedProfile array.

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

Clears the array and resizes to the given length.

Parameters
lengththe new length of the array
OpcUa_SupportedProfile * UaSupportedProfiles::detach ( )

Detach from the internal OpcUa_SupportedProfile 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_SupportedProfile array
bool UaSupportedProfiles::operator!= ( const UaSupportedProfiles other) const

Compare two UaSupportedProfiles.

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

Assignment operator.

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

Compare two UaSupportedProfiles.

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

Index operator.

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

Index operator.

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