UA Server SDK C++ Bundle  1.4.1.271
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
UaModelChangeStructureDataType Class Reference

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

#include <uamodelchangestructuredatatype.h>

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Wrapper class for the UA stack structure OpcUa_ModelChangeStructureDataType.

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

Constructor & Destructor Documentation

UaModelChangeStructureDataType::UaModelChangeStructureDataType ( const UaModelChangeStructureDataType other)

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

Parameters
otherthe other UaModelChangeStructureDataType used to initialize the object
UaModelChangeStructureDataType::UaModelChangeStructureDataType ( const OpcUa_ModelChangeStructureDataType &  other)

Constructs an instance of the class UaModelChangeStructureDataType with values from another OpcUa_ModelChangeStructureDataType structure.

Parameters
otherthe other OpcUa_ModelChangeStructureDataType used to initialize the object
UaModelChangeStructureDataType::UaModelChangeStructureDataType ( const UaExtensionObject extensionObject)

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

Parameters
extensionObjectthe extension object containing the ModelChangeStructureDataType
UaModelChangeStructureDataType::UaModelChangeStructureDataType ( const OpcUa_ExtensionObject &  extensionObject)

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

Parameters
extensionObjectthe extension object containing the ModelChangeStructureDataType

Member Function Documentation

void UaModelChangeStructureDataType::attach ( OpcUa_ModelChangeStructureDataType *  pValue)

Attaches the data of the parameter pValue.

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

Parameters
[in]pValueParameter to attach to.
void UaModelChangeStructureDataType::clear ( )

Clear the data of the UaModelChangeStructureDataType.

OpcUa_ModelChangeStructureDataType * UaModelChangeStructureDataType::clone ( const OpcUa_ModelChangeStructureDataType &  source)
static

Copy OpcUa_ModelChangeStructureDataType data to a newly allocated OpcUa_ModelChangeStructureDataType.

Parameters
sourceSource to clone.
Returns
new copy.
void UaModelChangeStructureDataType::cloneTo ( const OpcUa_ModelChangeStructureDataType &  source,
OpcUa_ModelChangeStructureDataType &  copy 
)
static

Copy OpcUa_ModelChangeStructureDataType data to an existing OpcUa_ModelChangeStructureDataType structure.

Parameters
sourcethe source of the clone operation.
copythe destination of the clone operation.
OpcUa_ModelChangeStructureDataType * UaModelChangeStructureDataType::copy ( ) const

Copy UaModelChangeStructureDataType data to a newly allocated OpcUa_ModelChangeStructureDataType.

Returns
data to a newly allocated OpcUa_ModelChangeStructureDataType.
void UaModelChangeStructureDataType::copyTo ( OpcUa_ModelChangeStructureDataType *  pDst) const

Copy UaModelChangeStructureDataType data to an existing OpcUa_ModelChangeStructureDataType structure.

Parameters
pDstthe destination of this copy operation.
OpcUa_ModelChangeStructureDataType * UaModelChangeStructureDataType::detach ( OpcUa_ModelChangeStructureDataType *  pDst)

Detaches the internal ModelChangeStructureDataType structure from this class.

This way you take over the control of releasing the ModelChangeStructureDataType data. If more than one reference exists, the data is copied to pDst instead of being detached.

Returns
If the function succeeds, pDst is returned, otherwise 0 is returned.
Parameters
[out]pDstPointer to OpcUa_ModelChangeStructureDataType structure that receives the ModelChangeStructureDataType data.
bool UaModelChangeStructureDataType::operator!= ( const UaModelChangeStructureDataType other) const

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

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

Assignment operator.

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

Compare two UaModelChangeStructureDataType if they are similar.

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

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