C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537
OpcUaDi::TransferResultErrorDataType Class Reference

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

#include <opcuadi_transferresulterrordatatype.h>

Public Member Functions

 TransferResultErrorDataType ()
 Constructs an instance of the class TransferResultErrorDataType with empty default values.
 
 TransferResultErrorDataType (const TransferResultErrorDataType &other)
 Constructs an instance of the class TransferResultErrorDataType with values from another TransferResultErrorDataType object. More...
 
 TransferResultErrorDataType (const OpcUaDi_TransferResultErrorDataType &other)
 Constructs an instance of the class TransferResultErrorDataType with values from another OpcUaDi_TransferResultErrorDataType structure. More...
 
 TransferResultErrorDataType (OpcUa_Int32 Status, const OpcUa_DiagnosticInfo &Diagnostics)
 Constructs an instance of the class TransferResultErrorDataType with values provided in the constructor.
 
 TransferResultErrorDataType (const UaExtensionObject &extensionObject)
 Constructs an instance of the class TransferResultErrorDataType initialized with value from a UaExtensionObject. More...
 
 TransferResultErrorDataType (const OpcUa_ExtensionObject &extensionObject)
 Constructs an instance of the class TransferResultErrorDataType initialized with value from an OpcUa_ExtensionObject structure. More...
 
 ~TransferResultErrorDataType ()
 Destroys the TransferResultErrorDataType object.
 
void clear ()
 Clear the data of the TransferResultErrorDataType.
 
bool operator== (const TransferResultErrorDataType &other) const
 Compare two TransferResultErrorDataType if they are similar. More...
 
bool operator!= (const TransferResultErrorDataType &other) const
 Returns true if the other TransferResultErrorDataType is not equal to this. More...
 
TransferResultErrorDataTypeoperator= (const TransferResultErrorDataType &other)
 Assignment operator. More...
 
OpcUaDi_TransferResultErrorDataType * copy () const
 Copy TransferResultErrorDataType data to a newly allocated OpcUaDi_TransferResultErrorDataType. More...
 
void copyTo (OpcUaDi_TransferResultErrorDataType *pDst) const
 Copy TransferResultErrorDataType data to an existing OpcUaDi_TransferResultErrorDataType structure. More...
 
void attach (const OpcUaDi_TransferResultErrorDataType *pValue)
 Attaches the data of the parameter pValue. More...
 
OpcUaDi_TransferResultErrorDataType * detach (OpcUaDi_TransferResultErrorDataType *pDst)
 Detaches the internal TransferResultErrorDataType structure from this class. More...
 

Static Public Member Functions

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

Detailed Description

Wrapper class for the UA stack structure OpcUaDi_TransferResultErrorDataType.

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

Constructor & Destructor Documentation

OpcUaDi::TransferResultErrorDataType::TransferResultErrorDataType ( const TransferResultErrorDataType other)

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

Parameters
otherthe other UaTransferResultErrorDataType used to initialize the object
OpcUaDi::TransferResultErrorDataType::TransferResultErrorDataType ( const OpcUaDi_TransferResultErrorDataType &  other)

Constructs an instance of the class TransferResultErrorDataType with values from another OpcUaDi_TransferResultErrorDataType structure.

Parameters
otherthe other OpcUaDi_TransferResultErrorDataType used to initialize the object
OpcUaDi::TransferResultErrorDataType::TransferResultErrorDataType ( const UaExtensionObject extensionObject)

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

Parameters
extensionObjectthe extension object containing the TransferResultErrorDataType
OpcUaDi::TransferResultErrorDataType::TransferResultErrorDataType ( const OpcUa_ExtensionObject extensionObject)

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

Parameters
extensionObjectthe extension object containing the TransferResultErrorDataType

Member Function Documentation

void OpcUaDi::TransferResultErrorDataType::attach ( const OpcUaDi_TransferResultErrorDataType *  pValue)

Attaches the data of the parameter pValue.

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

Parameters
[in]pValueParameter to attach to.
OpcUaDi_TransferResultErrorDataType * OpcUaDi::TransferResultErrorDataType::clone ( const OpcUaDi_TransferResultErrorDataType &  source)
static

Copy OpcUaDi_TransferResultErrorDataType data to a newly allocated OpcUaDi_TransferResultErrorDataType.

Parameters
sourceSource to clone.
Returns
new copy.
void OpcUaDi::TransferResultErrorDataType::cloneTo ( const OpcUaDi_TransferResultErrorDataType &  source,
OpcUaDi_TransferResultErrorDataType &  copy 
)
static

Copy OpcUaDi_TransferResultErrorDataType data to an existing OpcUaDi_TransferResultErrorDataType structure.

Parameters
sourcethe source of the clone operation.
copythe destination of the clone operation.
OpcUaDi_TransferResultErrorDataType * OpcUaDi::TransferResultErrorDataType::copy ( ) const

Copy TransferResultErrorDataType data to a newly allocated OpcUaDi_TransferResultErrorDataType.

Returns
data to a newly allocated OpcUaDi_TransferResultErrorDataType.
void OpcUaDi::TransferResultErrorDataType::copyTo ( OpcUaDi_TransferResultErrorDataType *  pDst) const

Copy TransferResultErrorDataType data to an existing OpcUaDi_TransferResultErrorDataType structure.

Parameters
pDstthe destination of this copy operation.
OpcUaDi_TransferResultErrorDataType * OpcUaDi::TransferResultErrorDataType::detach ( OpcUaDi_TransferResultErrorDataType *  pDst)

Detaches the internal TransferResultErrorDataType structure from this class.

This way you take over the control of releasing the TransferResultErrorDataType 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 OpcUaDi_TransferResultErrorDataType structure that receives the TransferResultErrorDataType data.
bool OpcUaDi::TransferResultErrorDataType::operator!= ( const TransferResultErrorDataType other) const

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

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

Assignment operator.

Parameters
otherthe TransferResultErrorDataType to assign.
Returns
Assignment operator.
bool OpcUaDi::TransferResultErrorDataType::operator== ( const TransferResultErrorDataType other) const

Compare two TransferResultErrorDataType if they are similar.

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

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