C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537
OpcUaGds::ApplicationRecordDataType Class Reference

Wrapper class for the UA stack structure OpcUaGds_ApplicationRecordDataType. More...

#include <opcuagds_applicationrecorddatatype.h>

Public Member Functions

 ApplicationRecordDataType ()
 Constructs an instance of the class ApplicationRecordDataType with empty default values.
 
 ApplicationRecordDataType (const ApplicationRecordDataType &other)
 Constructs an instance of the class ApplicationRecordDataType with values from another ApplicationRecordDataType object. More...
 
 ApplicationRecordDataType (const OpcUaGds_ApplicationRecordDataType &other)
 Constructs an instance of the class ApplicationRecordDataType with values from another OpcUaGds_ApplicationRecordDataType structure. More...
 
 ApplicationRecordDataType (const UaNodeId &ApplicationId, const UaString &ApplicationUri, OpcUa_ApplicationType ApplicationType, const UaLocalizedTextArray &ApplicationNames, const UaString &ProductUri, const UaStringArray &DiscoveryUrls, const UaStringArray &ServerCapabilities)
 Constructs an instance of the class ApplicationRecordDataType with values provided in the constructor.
 
 ApplicationRecordDataType (const UaExtensionObject &extensionObject)
 Constructs an instance of the class ApplicationRecordDataType initialized with value from a UaExtensionObject. More...
 
 ApplicationRecordDataType (const OpcUa_ExtensionObject &extensionObject)
 Constructs an instance of the class ApplicationRecordDataType initialized with value from an OpcUa_ExtensionObject structure. More...
 
 ~ApplicationRecordDataType ()
 Destroys the ApplicationRecordDataType object.
 
void clear ()
 Clear the data of the ApplicationRecordDataType.
 
bool operator== (const ApplicationRecordDataType &other) const
 Compare two ApplicationRecordDataType if they are similar. More...
 
bool operator!= (const ApplicationRecordDataType &other) const
 Returns true if the other ApplicationRecordDataType is not equal to this. More...
 
ApplicationRecordDataTypeoperator= (const ApplicationRecordDataType &other)
 Assignment operator. More...
 
OpcUaGds_ApplicationRecordDataType * copy () const
 Copy ApplicationRecordDataType data to a newly allocated OpcUaGds_ApplicationRecordDataType. More...
 
void copyTo (OpcUaGds_ApplicationRecordDataType *pDst) const
 Copy ApplicationRecordDataType data to an existing OpcUaGds_ApplicationRecordDataType structure. More...
 
void attach (const OpcUaGds_ApplicationRecordDataType *pValue)
 Attaches the data of the parameter pValue. More...
 
OpcUaGds_ApplicationRecordDataType * detach (OpcUaGds_ApplicationRecordDataType *pDst)
 Detaches the internal ApplicationRecordDataType structure from this class. More...
 

Static Public Member Functions

static
OpcUaGds_ApplicationRecordDataType * 
clone (const OpcUaGds_ApplicationRecordDataType &source)
 Copy OpcUaGds_ApplicationRecordDataType data to a newly allocated OpcUaGds_ApplicationRecordDataType. More...
 
static void cloneTo (const OpcUaGds_ApplicationRecordDataType &source, OpcUaGds_ApplicationRecordDataType &copy)
 Copy OpcUaGds_ApplicationRecordDataType data to an existing OpcUaGds_ApplicationRecordDataType structure. More...
 

Detailed Description

Wrapper class for the UA stack structure OpcUaGds_ApplicationRecordDataType.

This class encapsulates the native OpcUaGds_ApplicationRecordDataType structure and handles memory allocation and cleanup for you. ApplicationRecordDataType uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared ApplicationRecordDataType it creates a copy for that (copy-on-write). So assigning another ApplicationRecordDataType or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.

Constructor & Destructor Documentation

OpcUaGds::ApplicationRecordDataType::ApplicationRecordDataType ( const ApplicationRecordDataType other)

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

Parameters
otherthe other UaApplicationRecordDataType used to initialize the object
OpcUaGds::ApplicationRecordDataType::ApplicationRecordDataType ( const OpcUaGds_ApplicationRecordDataType &  other)

Constructs an instance of the class ApplicationRecordDataType with values from another OpcUaGds_ApplicationRecordDataType structure.

Parameters
otherthe other OpcUaGds_ApplicationRecordDataType used to initialize the object
OpcUaGds::ApplicationRecordDataType::ApplicationRecordDataType ( const UaExtensionObject extensionObject)

Constructs an instance of the class ApplicationRecordDataType initialized with value from a UaExtensionObject.

Parameters
extensionObjectthe extension object containing the ApplicationRecordDataType
OpcUaGds::ApplicationRecordDataType::ApplicationRecordDataType ( const OpcUa_ExtensionObject extensionObject)

Constructs an instance of the class ApplicationRecordDataType initialized with value from an OpcUa_ExtensionObject structure.

Parameters
extensionObjectthe extension object containing the ApplicationRecordDataType

Member Function Documentation

void OpcUaGds::ApplicationRecordDataType::attach ( const OpcUaGds_ApplicationRecordDataType *  pValue)

Attaches the data of the parameter pValue.

Don't clear the data of pValue afterwards manually, because ApplicationRecordDataType is responsible for it now.

Parameters
[in]pValueParameter to attach to.
OpcUaGds_ApplicationRecordDataType * OpcUaGds::ApplicationRecordDataType::clone ( const OpcUaGds_ApplicationRecordDataType &  source)
static

Copy OpcUaGds_ApplicationRecordDataType data to a newly allocated OpcUaGds_ApplicationRecordDataType.

Parameters
sourceSource to clone.
Returns
new copy.
void OpcUaGds::ApplicationRecordDataType::cloneTo ( const OpcUaGds_ApplicationRecordDataType &  source,
OpcUaGds_ApplicationRecordDataType &  copy 
)
static

Copy OpcUaGds_ApplicationRecordDataType data to an existing OpcUaGds_ApplicationRecordDataType structure.

Parameters
sourcethe source of the clone operation.
copythe destination of the clone operation.
OpcUaGds_ApplicationRecordDataType * OpcUaGds::ApplicationRecordDataType::copy ( ) const

Copy ApplicationRecordDataType data to a newly allocated OpcUaGds_ApplicationRecordDataType.

Returns
data to a newly allocated OpcUaGds_ApplicationRecordDataType.
void OpcUaGds::ApplicationRecordDataType::copyTo ( OpcUaGds_ApplicationRecordDataType *  pDst) const

Copy ApplicationRecordDataType data to an existing OpcUaGds_ApplicationRecordDataType structure.

Parameters
pDstthe destination of this copy operation.
OpcUaGds_ApplicationRecordDataType * OpcUaGds::ApplicationRecordDataType::detach ( OpcUaGds_ApplicationRecordDataType *  pDst)

Detaches the internal ApplicationRecordDataType structure from this class.

This way you take over the control of releasing the ApplicationRecordDataType data. If more than one references exist, the data is copied to pDst instead of being detached.

Returns
If the functions succeeds pDst is returned, otherwise 0 is returned.
Parameters
[out]pDstPointer to OpcUaGds_ApplicationRecordDataType structure that receives the ApplicationRecordDataType data.
bool OpcUaGds::ApplicationRecordDataType::operator!= ( const ApplicationRecordDataType other) const

Returns true if the other ApplicationRecordDataType is not equal to this.

See also
operator==
Parameters
otherthe ApplicationRecordDataType to compare.
Returns
true if other is not equal to this.
ApplicationRecordDataType & OpcUaGds::ApplicationRecordDataType::operator= ( const ApplicationRecordDataType other)

Assignment operator.

Parameters
otherthe ApplicationRecordDataType to assign.
Returns
Assignment operator.
bool OpcUaGds::ApplicationRecordDataType::operator== ( const ApplicationRecordDataType other) const

Compare two ApplicationRecordDataType if they are similar.

Parameters
otherthe ApplicationRecordDataType to compare.
Returns
true if similar, false if not.

The documentation for this class was generated from the following files: