C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537
UaConfigurationVersionDataType Class Reference

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

#include <uaconfigurationversiondatatype.h>

Public Member Functions

 UaConfigurationVersionDataType ()
 Constructs an instance of the class UaConfigurationVersionDataType with empty default values.
 
 UaConfigurationVersionDataType (const UaConfigurationVersionDataType &other)
 Constructs an instance of the class UaConfigurationVersionDataType with values from another UaConfigurationVersionDataType object. More...
 
 UaConfigurationVersionDataType (const OpcUa_ConfigurationVersionDataType &other)
 Constructs an instance of the class UaConfigurationVersionDataType with values from another OpcUa_ConfigurationVersionDataType structure. More...
 
 UaConfigurationVersionDataType (OpcUa_UInt32 majorVersion, OpcUa_UInt32 minorVersion)
 Constructs an instance of the class UaConfigurationVersionDataType with values provided in the constructor.
 
 UaConfigurationVersionDataType (const UaExtensionObject &extensionObject)
 Constructs an instance of the class UaConfigurationVersionDataType initialized with value from a UaExtensionObject. More...
 
 UaConfigurationVersionDataType (const OpcUa_ExtensionObject &extensionObject)
 Constructs an instance of the class UaConfigurationVersionDataType initialized with value from an OpcUa_ExtensionObject structure. More...
 
 ~UaConfigurationVersionDataType ()
 Destroys the UaConfigurationVersionDataType object.
 
void clear ()
 Clear the data of the UaConfigurationVersionDataType. More...
 
bool operator== (const UaConfigurationVersionDataType &other) const
 Compare two UaConfigurationVersionDataType for equality. More...
 
bool operator!= (const UaConfigurationVersionDataType &other) const
 Compare two UaConfigurationVersionDataType for inequality. More...
 
UaConfigurationVersionDataTypeoperator= (const UaConfigurationVersionDataType &other)
 Assignment operator. More...
 
OpcUa_ConfigurationVersionDataType * copy () const
 Copy UaConfigurationVersionDataType data to a newly allocated OpcUa_ConfigurationVersionDataType. More...
 
void copyTo (OpcUa_ConfigurationVersionDataType *pDst) const
 Copy UaConfigurationVersionDataType data to an existing OpcUa_ConfigurationVersionDataType structure. More...
 
void attach (OpcUa_ConfigurationVersionDataType *pValue)
 Attaches to an existing OpcUa_ConfigurationVersionDataType structure. More...
 
OpcUa_ConfigurationVersionDataType * detach (OpcUa_ConfigurationVersionDataType *pDst)
 Detaches the internal ConfigurationVersionDataType structure from this class. More...
 
OpcUa_UInt32 getMajorVersion () const
 Returns the MajorVersion.
 
OpcUa_UInt32 getMinorVersion () const
 Returns the MinorVersion.
 
void setMajorVersion (OpcUa_UInt32 majorVersion)
 Sets the MajorVersion.
 
void setMinorVersion (OpcUa_UInt32 minorVersion)
 Sets the MinorVersion.
 

Static Public Member Functions

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

Detailed Description

Wrapper class for the UA stack structure OpcUa_ConfigurationVersionDataType.

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

Constructor & Destructor Documentation

UaConfigurationVersionDataType::UaConfigurationVersionDataType ( const UaConfigurationVersionDataType other)

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

Parameters
otherthe other UaConfigurationVersionDataType used to initialize the object
UaConfigurationVersionDataType::UaConfigurationVersionDataType ( const OpcUa_ConfigurationVersionDataType &  other)

Constructs an instance of the class UaConfigurationVersionDataType with values from another OpcUa_ConfigurationVersionDataType structure.

Parameters
otherthe other OpcUa_ConfigurationVersionDataType used to initialize the object
UaConfigurationVersionDataType::UaConfigurationVersionDataType ( const UaExtensionObject extensionObject)

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

Parameters
extensionObjectthe extension object containing the ConfigurationVersionDataType
UaConfigurationVersionDataType::UaConfigurationVersionDataType ( const OpcUa_ExtensionObject extensionObject)

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

Parameters
extensionObjectthe extension object containing the ConfigurationVersionDataType

Member Function Documentation

void UaConfigurationVersionDataType::attach ( OpcUa_ConfigurationVersionDataType *  pValue)

Attaches to an existing OpcUa_ConfigurationVersionDataType structure.

Don't manually free the attached structure afterwards, because UaConfigurationVersionDataType is responsible for it now.

Parameters
pValue[in] Parameter to attach to.
void UaConfigurationVersionDataType::clear ( )

Clear the data of the UaConfigurationVersionDataType.

OpcUa_ConfigurationVersionDataType * UaConfigurationVersionDataType::clone ( const OpcUa_ConfigurationVersionDataType &  source)
static

Copy OpcUa_ConfigurationVersionDataType data to a newly allocated OpcUa_ConfigurationVersionDataType.

Parameters
sourceSource to clone.
Returns
pointer to a newly allocated OpcUa_ConfigurationVersionDataType.
void UaConfigurationVersionDataType::cloneTo ( const OpcUa_ConfigurationVersionDataType &  source,
OpcUa_ConfigurationVersionDataType &  copy 
)
static

Copy OpcUa_ConfigurationVersionDataType data to an existing OpcUa_ConfigurationVersionDataType structure.

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

Copy UaConfigurationVersionDataType data to a newly allocated OpcUa_ConfigurationVersionDataType.

Returns
pointer to a newly allocated OpcUa_ConfigurationVersionDataType.
void UaConfigurationVersionDataType::copyTo ( OpcUa_ConfigurationVersionDataType *  pDst) const

Copy UaConfigurationVersionDataType data to an existing OpcUa_ConfigurationVersionDataType structure.

Parameters
pDstthe destination of this copy operation.
OpcUa_ConfigurationVersionDataType * UaConfigurationVersionDataType::detach ( OpcUa_ConfigurationVersionDataType *  pDst)

Detaches the internal ConfigurationVersionDataType structure from this class.

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

Parameters
pDst[out] Pointer to an OpcUa_ConfigurationVersionDataType structure that receives the ConfigurationVersionDataType data.
Returns
If the function succeeds, pDst is returned, otherwise 0 is returned.
bool UaConfigurationVersionDataType::operator!= ( const UaConfigurationVersionDataType other) const

Compare two UaConfigurationVersionDataType for inequality.

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

Assignment operator.

Parameters
otherthe UaConfigurationVersionDataType to assign.
Returns
reference to itself.
bool UaConfigurationVersionDataType::operator== ( const UaConfigurationVersionDataType other) const

Compare two UaConfigurationVersionDataType for equality.

Parameters
otherthe UaConfigurationVersionDataType to compare with.
Returns
true if equal, false if not.

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