C++ Based OPC UA Client/Server/PubSub SDK
1.7.8.584
|
Wrapper class for the UA stack structure OpcUa_FieldTargetDataType. More...
#include <uafieldtargetdatatype.h>
Public Member Functions | |
UaFieldTargetDataType () | |
Constructs an instance of the class UaFieldTargetDataType with empty default values. | |
UaFieldTargetDataType (const UaFieldTargetDataType &other) | |
Constructs an instance of the class UaFieldTargetDataType with values from another UaFieldTargetDataType object. More... | |
UaFieldTargetDataType (const OpcUa_FieldTargetDataType &other) | |
Constructs an instance of the class UaFieldTargetDataType with values from another OpcUa_FieldTargetDataType structure. More... | |
UaFieldTargetDataType (const UaGuid &dataSetFieldId, const UaString &receiverIndexRange, const UaNodeId &targetNodeId, OpcUa_UInt32 attributeId, const UaString &writeIndexRange, OpcUa_OverrideValueHandling overrideValueHandling, const UaVariant &overrideValue) | |
Constructs an instance of the class UaFieldTargetDataType with values provided in the constructor. | |
UaFieldTargetDataType (const UaExtensionObject &extensionObject) | |
Constructs an instance of the class UaFieldTargetDataType initialized with value from a UaExtensionObject. More... | |
UaFieldTargetDataType (const OpcUa_ExtensionObject &extensionObject) | |
Constructs an instance of the class UaFieldTargetDataType initialized with value from an OpcUa_ExtensionObject structure. More... | |
~UaFieldTargetDataType () | |
Destroys the UaFieldTargetDataType object. | |
void | clear () |
Clear the data of the UaFieldTargetDataType. More... | |
bool | operator== (const UaFieldTargetDataType &other) const |
Compare two UaFieldTargetDataType for equality. More... | |
bool | operator!= (const UaFieldTargetDataType &other) const |
Compare two UaFieldTargetDataType for inequality. More... | |
UaFieldTargetDataType & | operator= (const UaFieldTargetDataType &other) |
Assignment operator. More... | |
OpcUa_FieldTargetDataType * | copy () const |
Copy UaFieldTargetDataType data to a newly allocated OpcUa_FieldTargetDataType. More... | |
void | copyTo (OpcUa_FieldTargetDataType *pDst) const |
Copy UaFieldTargetDataType data to an existing OpcUa_FieldTargetDataType structure. More... | |
void | attach (OpcUa_FieldTargetDataType *pValue) |
Attaches to an existing OpcUa_FieldTargetDataType structure. More... | |
OpcUa_FieldTargetDataType * | detach (OpcUa_FieldTargetDataType *pDst) |
Detaches the internal FieldTargetDataType structure from this class. More... | |
UaGuid | getDataSetFieldId () const |
Returns the DataSetFieldId. | |
UaString | getReceiverIndexRange () const |
Returns the ReceiverIndexRange. | |
UaNodeId | getTargetNodeId () const |
Returns the TargetNodeId. | |
OpcUa_UInt32 | getAttributeId () const |
Returns the AttributeId. | |
UaString | getWriteIndexRange () const |
Returns the WriteIndexRange. | |
OpcUa_OverrideValueHandling | getOverrideValueHandling () const |
Returns the OverrideValueHandling. | |
UaVariant | getOverrideValue () const |
Returns the OverrideValue. | |
void | setDataSetFieldId (const UaGuid &dataSetFieldId) |
Sets the DataSetFieldId. | |
void | setReceiverIndexRange (const UaString &receiverIndexRange) |
Sets the ReceiverIndexRange. | |
void | setTargetNodeId (const UaNodeId &targetNodeId) |
Sets the TargetNodeId. | |
void | setAttributeId (OpcUa_UInt32 attributeId) |
Sets the AttributeId. | |
void | setWriteIndexRange (const UaString &writeIndexRange) |
Sets the WriteIndexRange. | |
void | setOverrideValueHandling (OpcUa_OverrideValueHandling overrideValueHandling) |
Sets the OverrideValueHandling. | |
void | setOverrideValue (const UaVariant &overrideValue) |
Sets the OverrideValue. | |
Static Public Member Functions | |
static OpcUa_FieldTargetDataType * | clone (const OpcUa_FieldTargetDataType &source) |
Copy OpcUa_FieldTargetDataType data to a newly allocated OpcUa_FieldTargetDataType. More... | |
static void | cloneTo (const OpcUa_FieldTargetDataType &source, OpcUa_FieldTargetDataType ©) |
Copy OpcUa_FieldTargetDataType data to an existing OpcUa_FieldTargetDataType structure. More... | |
Wrapper class for the UA stack structure OpcUa_FieldTargetDataType.
This class encapsulates the native OpcUa_FieldTargetDataType structure and handles memory allocation and cleanup for you. UaFieldTargetDataType uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared FieldTargetDataType it creates a copy for that (copy-on-write). So assigning another UaFieldTargetDataType or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.
UaFieldTargetDataType::UaFieldTargetDataType | ( | const UaFieldTargetDataType & | other | ) |
Constructs an instance of the class UaFieldTargetDataType with values from another UaFieldTargetDataType object.
other | the other UaFieldTargetDataType used to initialize the object |
UaFieldTargetDataType::UaFieldTargetDataType | ( | const OpcUa_FieldTargetDataType & | other | ) |
Constructs an instance of the class UaFieldTargetDataType with values from another OpcUa_FieldTargetDataType structure.
other | the other OpcUa_FieldTargetDataType used to initialize the object |
UaFieldTargetDataType::UaFieldTargetDataType | ( | const UaExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaFieldTargetDataType initialized with value from a UaExtensionObject.
extensionObject | the extension object containing the FieldTargetDataType |
UaFieldTargetDataType::UaFieldTargetDataType | ( | const OpcUa_ExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaFieldTargetDataType initialized with value from an OpcUa_ExtensionObject structure.
extensionObject | the extension object containing the FieldTargetDataType |
void UaFieldTargetDataType::attach | ( | OpcUa_FieldTargetDataType * | pValue | ) |
Attaches to an existing OpcUa_FieldTargetDataType structure.
Don't manually free the attached structure afterwards, because UaFieldTargetDataType is responsible for it now.
pValue | [in] Parameter to attach to. |
void UaFieldTargetDataType::clear | ( | ) |
Clear the data of the UaFieldTargetDataType.
|
static |
Copy OpcUa_FieldTargetDataType data to a newly allocated OpcUa_FieldTargetDataType.
source | Source to clone. |
|
static |
Copy OpcUa_FieldTargetDataType data to an existing OpcUa_FieldTargetDataType structure.
source | the source of the clone operation. |
copy | the destination of the clone operation. |
OpcUa_FieldTargetDataType * UaFieldTargetDataType::copy | ( | ) | const |
Copy UaFieldTargetDataType data to a newly allocated OpcUa_FieldTargetDataType.
void UaFieldTargetDataType::copyTo | ( | OpcUa_FieldTargetDataType * | pDst | ) | const |
Copy UaFieldTargetDataType data to an existing OpcUa_FieldTargetDataType structure.
pDst | the destination of this copy operation. |
OpcUa_FieldTargetDataType * UaFieldTargetDataType::detach | ( | OpcUa_FieldTargetDataType * | pDst | ) |
Detaches the internal FieldTargetDataType structure from this class.
This way you take over the control of freeing the FieldTargetDataType data. If more than one reference exists, the data is copied to pDst instead of being detached.
pDst | [out] Pointer to an OpcUa_FieldTargetDataType structure that receives the FieldTargetDataType data. |
bool UaFieldTargetDataType::operator!= | ( | const UaFieldTargetDataType & | other | ) | const |
Compare two UaFieldTargetDataType for inequality.
other | the UaFieldTargetDataType to compare with. |
UaFieldTargetDataType & UaFieldTargetDataType::operator= | ( | const UaFieldTargetDataType & | other | ) |
Assignment operator.
other | the UaFieldTargetDataType to assign. |
bool UaFieldTargetDataType::operator== | ( | const UaFieldTargetDataType & | other | ) | const |
Compare two UaFieldTargetDataType for equality.
other | the UaFieldTargetDataType to compare with. |