![]() |
C++ Based OPC UA Client/Server/PubSub SDK
1.7.6.537
|
Wrapper class for the UA stack structure OpcUa_DataSetWriterDataType. More...
#include <uadatasetwriterdatatype.h>
Public Member Functions | |
UaDataSetWriterDataType () | |
Constructs an instance of the class UaDataSetWriterDataType with empty default values. | |
UaDataSetWriterDataType (const UaDataSetWriterDataType &other) | |
Constructs an instance of the class UaDataSetWriterDataType with values from another UaDataSetWriterDataType object. More... | |
UaDataSetWriterDataType (const OpcUa_DataSetWriterDataType &other) | |
Constructs an instance of the class UaDataSetWriterDataType with values from another OpcUa_DataSetWriterDataType structure. More... | |
UaDataSetWriterDataType (const UaString &name, OpcUa_Boolean enabled, OpcUa_UInt16 dataSetWriterId, OpcUa_DataSetFieldContentMask dataSetFieldContentMask, OpcUa_UInt32 keyFrameCount, const UaString &dataSetName, const UaKeyValuePairs &dataSetWriterProperties, UaExtensionObject &transportSettings, UaExtensionObject &messageSettings) | |
Constructs an instance of the class UaDataSetWriterDataType with values provided in the constructor. | |
UaDataSetWriterDataType (const UaExtensionObject &extensionObject) | |
Constructs an instance of the class UaDataSetWriterDataType initialized with value from a UaExtensionObject. More... | |
UaDataSetWriterDataType (const OpcUa_ExtensionObject &extensionObject) | |
Constructs an instance of the class UaDataSetWriterDataType initialized with value from an OpcUa_ExtensionObject structure. More... | |
~UaDataSetWriterDataType () | |
Destroys the UaDataSetWriterDataType object. | |
void | clear () |
Clear the data of the UaDataSetWriterDataType. More... | |
bool | operator== (const UaDataSetWriterDataType &other) const |
Compare two UaDataSetWriterDataType for equality. More... | |
bool | operator!= (const UaDataSetWriterDataType &other) const |
Compare two UaDataSetWriterDataType for inequality. More... | |
UaDataSetWriterDataType & | operator= (const UaDataSetWriterDataType &other) |
Assignment operator. More... | |
OpcUa_DataSetWriterDataType * | copy () const |
Copy UaDataSetWriterDataType data to a newly allocated OpcUa_DataSetWriterDataType. More... | |
void | copyTo (OpcUa_DataSetWriterDataType *pDst) const |
Copy UaDataSetWriterDataType data to an existing OpcUa_DataSetWriterDataType structure. More... | |
void | attach (OpcUa_DataSetWriterDataType *pValue) |
Attaches to an existing OpcUa_DataSetWriterDataType structure. More... | |
OpcUa_DataSetWriterDataType * | detach (OpcUa_DataSetWriterDataType *pDst) |
Detaches the internal DataSetWriterDataType structure from this class. More... | |
UaString | getName () const |
Returns the Name. | |
OpcUa_Boolean | getEnabled () const |
Returns the Enabled. | |
OpcUa_UInt16 | getDataSetWriterId () const |
Returns the DataSetWriterId. | |
OpcUa_DataSetFieldContentMask | getDataSetFieldContentMask () const |
Returns the DataSetFieldContentMask. | |
OpcUa_UInt32 | getKeyFrameCount () const |
Returns the KeyFrameCount. | |
UaString | getDataSetName () const |
Returns the DataSetName. | |
void | getDataSetWriterProperties (UaKeyValuePairs &dataSetWriterProperties) const |
Returns the DataSetWriterProperties. | |
UaExtensionObject | getTransportSettings () const |
Returns the TransportSettings. | |
UaExtensionObject | getMessageSettings () const |
Returns the MessageSettings. | |
void | setName (const UaString &name) |
Sets the Name. | |
void | setEnabled (OpcUa_Boolean enabled) |
Sets the Enabled. | |
void | setDataSetWriterId (OpcUa_UInt16 dataSetWriterId) |
Sets the DataSetWriterId. | |
void | setDataSetFieldContentMask (OpcUa_DataSetFieldContentMask dataSetFieldContentMask) |
Sets the DataSetFieldContentMask. | |
void | setKeyFrameCount (OpcUa_UInt32 keyFrameCount) |
Sets the KeyFrameCount. | |
void | setDataSetName (const UaString &dataSetName) |
Sets the DataSetName. | |
void | setDataSetWriterProperties (const UaKeyValuePairs &dataSetWriterProperties) |
Sets the DataSetWriterProperties. | |
void | setTransportSettings (UaExtensionObject &transportSettings) |
Sets the TransportSettings. | |
void | setMessageSettings (UaExtensionObject &messageSettings) |
Sets the MessageSettings. | |
Static Public Member Functions | |
static OpcUa_DataSetWriterDataType * | clone (const OpcUa_DataSetWriterDataType &source) |
Copy OpcUa_DataSetWriterDataType data to a newly allocated OpcUa_DataSetWriterDataType. More... | |
static void | cloneTo (const OpcUa_DataSetWriterDataType &source, OpcUa_DataSetWriterDataType ©) |
Copy OpcUa_DataSetWriterDataType data to an existing OpcUa_DataSetWriterDataType structure. More... | |
Wrapper class for the UA stack structure OpcUa_DataSetWriterDataType.
This class encapsulates the native OpcUa_DataSetWriterDataType structure and handles memory allocation and cleanup for you. UaDataSetWriterDataType uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared DataSetWriterDataType it creates a copy for that (copy-on-write). So assigning another UaDataSetWriterDataType or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.
UaDataSetWriterDataType::UaDataSetWriterDataType | ( | const UaDataSetWriterDataType & | other | ) |
Constructs an instance of the class UaDataSetWriterDataType with values from another UaDataSetWriterDataType object.
other | the other UaDataSetWriterDataType used to initialize the object |
UaDataSetWriterDataType::UaDataSetWriterDataType | ( | const OpcUa_DataSetWriterDataType & | other | ) |
Constructs an instance of the class UaDataSetWriterDataType with values from another OpcUa_DataSetWriterDataType structure.
other | the other OpcUa_DataSetWriterDataType used to initialize the object |
UaDataSetWriterDataType::UaDataSetWriterDataType | ( | const UaExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaDataSetWriterDataType initialized with value from a UaExtensionObject.
extensionObject | the extension object containing the DataSetWriterDataType |
UaDataSetWriterDataType::UaDataSetWriterDataType | ( | const OpcUa_ExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaDataSetWriterDataType initialized with value from an OpcUa_ExtensionObject structure.
extensionObject | the extension object containing the DataSetWriterDataType |
void UaDataSetWriterDataType::attach | ( | OpcUa_DataSetWriterDataType * | pValue | ) |
Attaches to an existing OpcUa_DataSetWriterDataType structure.
Don't manually free the attached structure afterwards, because UaDataSetWriterDataType is responsible for it now.
pValue | [in] Parameter to attach to. |
void UaDataSetWriterDataType::clear | ( | ) |
Clear the data of the UaDataSetWriterDataType.
|
static |
Copy OpcUa_DataSetWriterDataType data to a newly allocated OpcUa_DataSetWriterDataType.
source | Source to clone. |
|
static |
Copy OpcUa_DataSetWriterDataType data to an existing OpcUa_DataSetWriterDataType structure.
source | the source of the clone operation. |
copy | the destination of the clone operation. |
OpcUa_DataSetWriterDataType * UaDataSetWriterDataType::copy | ( | ) | const |
Copy UaDataSetWriterDataType data to a newly allocated OpcUa_DataSetWriterDataType.
void UaDataSetWriterDataType::copyTo | ( | OpcUa_DataSetWriterDataType * | pDst | ) | const |
Copy UaDataSetWriterDataType data to an existing OpcUa_DataSetWriterDataType structure.
pDst | the destination of this copy operation. |
OpcUa_DataSetWriterDataType * UaDataSetWriterDataType::detach | ( | OpcUa_DataSetWriterDataType * | pDst | ) |
Detaches the internal DataSetWriterDataType structure from this class.
This way you take over the control of freeing the DataSetWriterDataType data. If more than one reference exists, the data is copied to pDst instead of being detached.
pDst | [out] Pointer to an OpcUa_DataSetWriterDataType structure that receives the DataSetWriterDataType data. |
bool UaDataSetWriterDataType::operator!= | ( | const UaDataSetWriterDataType & | other | ) | const |
Compare two UaDataSetWriterDataType for inequality.
other | the UaDataSetWriterDataType to compare with. |
UaDataSetWriterDataType & UaDataSetWriterDataType::operator= | ( | const UaDataSetWriterDataType & | other | ) |
Assignment operator.
other | the UaDataSetWriterDataType to assign. |
bool UaDataSetWriterDataType::operator== | ( | const UaDataSetWriterDataType & | other | ) | const |
Compare two UaDataSetWriterDataType for equality.
other | the UaDataSetWriterDataType to compare with. |