C++ Based OPC UA Client/Server SDK  1.5.5.355
OpcUaDi::FetchResultErrorDataType Class Reference

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

#include <opcuadi_fetchresulterrordatatype.h>

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Wrapper class for the UA stack structure OpcUaDi_FetchResultErrorDataType.

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

Constructor & Destructor Documentation

OpcUaDi::FetchResultErrorDataType::FetchResultErrorDataType ( const FetchResultErrorDataType other)

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

Parameters
otherthe other UaFetchResultErrorDataType used to initialize the object
OpcUaDi::FetchResultErrorDataType::FetchResultErrorDataType ( const OpcUaDi_FetchResultErrorDataType &  other)

Constructs an instance of the class FetchResultErrorDataType with values from another OpcUaDi_FetchResultErrorDataType structure.

Parameters
otherthe other OpcUaDi_FetchResultErrorDataType used to initialize the object
OpcUaDi::FetchResultErrorDataType::FetchResultErrorDataType ( const UaExtensionObject extensionObject)

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

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

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

Parameters
extensionObjectthe extension object containing the FetchResultErrorDataType

Member Function Documentation

void OpcUaDi::FetchResultErrorDataType::attach ( const OpcUaDi_FetchResultErrorDataType *  pValue)

Attaches the data of the parameter pValue.

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

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

Copy OpcUaDi_FetchResultErrorDataType data to a newly allocated OpcUaDi_FetchResultErrorDataType.

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

Copy OpcUaDi_FetchResultErrorDataType data to an existing OpcUaDi_FetchResultErrorDataType structure.

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

Copy FetchResultErrorDataType data to a newly allocated OpcUaDi_FetchResultErrorDataType.

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

Copy FetchResultErrorDataType data to an existing OpcUaDi_FetchResultErrorDataType structure.

Parameters
pDstthe destination of this copy operation.
OpcUaDi_FetchResultErrorDataType * OpcUaDi::FetchResultErrorDataType::detach ( OpcUaDi_FetchResultErrorDataType *  pDst)

Detaches the internal FetchResultErrorDataType structure from this class.

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

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

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

Assignment operator.

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

Compare two FetchResultErrorDataType if they are similar.

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

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