Wrapper class for the UA stack structure OpcUaDi_ParameterResultDataType.
More...
#include <opcuadi_parameterresultdatatype.h>
|
static
OpcUaDi_ParameterResultDataType * | clone (const OpcUaDi_ParameterResultDataType &source) |
| Copy OpcUaDi_ParameterResultDataType data to a newly allocated OpcUaDi_ParameterResultDataType. More...
|
|
static void | cloneTo (const OpcUaDi_ParameterResultDataType &source, OpcUaDi_ParameterResultDataType ©) |
| Copy OpcUaDi_ParameterResultDataType data to an existing OpcUaDi_ParameterResultDataType structure. More...
|
|
Wrapper class for the UA stack structure OpcUaDi_ParameterResultDataType.
This class encapsulates the native OpcUaDi_ParameterResultDataType structure and handles memory allocation and cleanup for you. ParameterResultDataType uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared ParameterResultDataType it creates a copy for that (copy-on-write). So assigning another ParameterResultDataType or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.
OpcUaDi::ParameterResultDataType::ParameterResultDataType |
( |
const OpcUaDi_ParameterResultDataType & |
other | ) |
|
Constructs an instance of the class ParameterResultDataType with values from another OpcUaDi_ParameterResultDataType structure.
- Parameters
-
other | the other OpcUaDi_ParameterResultDataType used to initialize the object |
OpcUaDi::ParameterResultDataType::ParameterResultDataType |
( |
const UaExtensionObject & |
extensionObject | ) |
|
OpcUaDi::ParameterResultDataType::ParameterResultDataType |
( |
const OpcUa_ExtensionObject & |
extensionObject | ) |
|
void OpcUaDi::ParameterResultDataType::attach |
( |
const OpcUaDi_ParameterResultDataType * |
pValue | ) |
|
Attaches the data of the parameter pValue.
Don't clear the data of pValue afterwards manually, because ParameterResultDataType is responsible for it now.
- Parameters
-
[in] | pValue | Parameter to attach to. |
OpcUaDi_ParameterResultDataType * OpcUaDi::ParameterResultDataType::clone |
( |
const OpcUaDi_ParameterResultDataType & |
source | ) |
|
|
static |
Copy OpcUaDi_ParameterResultDataType data to a newly allocated OpcUaDi_ParameterResultDataType.
- Parameters
-
- Returns
- new copy.
void OpcUaDi::ParameterResultDataType::cloneTo |
( |
const OpcUaDi_ParameterResultDataType & |
source, |
|
|
OpcUaDi_ParameterResultDataType & |
copy |
|
) |
| |
|
static |
Copy OpcUaDi_ParameterResultDataType data to an existing OpcUaDi_ParameterResultDataType structure.
- Parameters
-
source | the source of the clone operation. |
copy | the destination of the clone operation. |
OpcUaDi_ParameterResultDataType * OpcUaDi::ParameterResultDataType::copy |
( |
| ) |
const |
Copy ParameterResultDataType data to a newly allocated OpcUaDi_ParameterResultDataType.
- Returns
- data to a newly allocated OpcUaDi_ParameterResultDataType.
void OpcUaDi::ParameterResultDataType::copyTo |
( |
OpcUaDi_ParameterResultDataType * |
pDst | ) |
const |
Copy ParameterResultDataType data to an existing OpcUaDi_ParameterResultDataType structure.
- Parameters
-
pDst | the destination of this copy operation. |
OpcUaDi_ParameterResultDataType * OpcUaDi::ParameterResultDataType::detach |
( |
OpcUaDi_ParameterResultDataType * |
pDst | ) |
|
Detaches the internal ParameterResultDataType structure from this class.
This way you take over the control of releasing the ParameterResultDataType 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
-
Returns true if the other ParameterResultDataType is not equal to this.
- See also
- operator==
- Parameters
-
- Returns
- true if other is not equal to this.
Assignment operator.
- Parameters
-
- Returns
- Assignment operator.
The documentation for this class was generated from the following files:
- D:/work/uasdkcpp/src/uaserver/uaservercpp/uamodels/opcuadi_parameterresultdatatype.h
- D:/work/uasdkcpp/src/uaserver/uaservercpp/uamodels/opcuadi_parameterresultdatatype.cpp