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