![]() |
C++ Based OPC UA Client/Server/PubSub SDK
1.7.6.537
|
Wrapper class for the UA stack structure OpcUa_PubSubConfigurationDataType. More...
#include <uapubsubconfigurationdatatype.h>
Public Member Functions | |
UaPubSubConfigurationDataType () | |
Constructs an instance of the class UaPubSubConfigurationDataType with empty default values. | |
UaPubSubConfigurationDataType (const UaPubSubConfigurationDataType &other) | |
Constructs an instance of the class UaPubSubConfigurationDataType with values from another UaPubSubConfigurationDataType object. More... | |
UaPubSubConfigurationDataType (const OpcUa_PubSubConfigurationDataType &other) | |
Constructs an instance of the class UaPubSubConfigurationDataType with values from another OpcUa_PubSubConfigurationDataType structure. More... | |
UaPubSubConfigurationDataType (const UaPublishedDataSetDataTypes &publishedDataSets, const UaPubSubConnectionDataTypes &connections, OpcUa_Boolean enabled) | |
Constructs an instance of the class UaPubSubConfigurationDataType with values provided in the constructor. | |
UaPubSubConfigurationDataType (const UaExtensionObject &extensionObject) | |
Constructs an instance of the class UaPubSubConfigurationDataType initialized with value from a UaExtensionObject. More... | |
UaPubSubConfigurationDataType (const OpcUa_ExtensionObject &extensionObject) | |
Constructs an instance of the class UaPubSubConfigurationDataType initialized with value from an OpcUa_ExtensionObject structure. More... | |
~UaPubSubConfigurationDataType () | |
Destroys the UaPubSubConfigurationDataType object. | |
void | clear () |
Clear the data of the UaPubSubConfigurationDataType. More... | |
bool | operator== (const UaPubSubConfigurationDataType &other) const |
Compare two UaPubSubConfigurationDataType for equality. More... | |
bool | operator!= (const UaPubSubConfigurationDataType &other) const |
Compare two UaPubSubConfigurationDataType for inequality. More... | |
UaPubSubConfigurationDataType & | operator= (const UaPubSubConfigurationDataType &other) |
Assignment operator. More... | |
OpcUa_PubSubConfigurationDataType * | copy () const |
Copy UaPubSubConfigurationDataType data to a newly allocated OpcUa_PubSubConfigurationDataType. More... | |
void | copyTo (OpcUa_PubSubConfigurationDataType *pDst) const |
Copy UaPubSubConfigurationDataType data to an existing OpcUa_PubSubConfigurationDataType structure. More... | |
void | attach (OpcUa_PubSubConfigurationDataType *pValue) |
Attaches to an existing OpcUa_PubSubConfigurationDataType structure. More... | |
OpcUa_PubSubConfigurationDataType * | detach (OpcUa_PubSubConfigurationDataType *pDst) |
Detaches the internal PubSubConfigurationDataType structure from this class. More... | |
void | getPublishedDataSets (UaPublishedDataSetDataTypes &publishedDataSets) const |
Returns the PublishedDataSets. | |
void | getConnections (UaPubSubConnectionDataTypes &connections) const |
Returns the Connections. | |
OpcUa_Boolean | getEnabled () const |
Returns the Enabled. | |
void | setPublishedDataSets (const UaPublishedDataSetDataTypes &publishedDataSets) |
Sets the PublishedDataSets. | |
void | setConnections (const UaPubSubConnectionDataTypes &connections) |
Sets the Connections. | |
void | setEnabled (OpcUa_Boolean enabled) |
Sets the Enabled. | |
Static Public Member Functions | |
static OpcUa_PubSubConfigurationDataType * | clone (const OpcUa_PubSubConfigurationDataType &source) |
Copy OpcUa_PubSubConfigurationDataType data to a newly allocated OpcUa_PubSubConfigurationDataType. More... | |
static void | cloneTo (const OpcUa_PubSubConfigurationDataType &source, OpcUa_PubSubConfigurationDataType ©) |
Copy OpcUa_PubSubConfigurationDataType data to an existing OpcUa_PubSubConfigurationDataType structure. More... | |
Wrapper class for the UA stack structure OpcUa_PubSubConfigurationDataType.
This class encapsulates the native OpcUa_PubSubConfigurationDataType structure and handles memory allocation and cleanup for you. UaPubSubConfigurationDataType uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared PubSubConfigurationDataType it creates a copy for that (copy-on-write). So assigning another UaPubSubConfigurationDataType or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.
UaPubSubConfigurationDataType::UaPubSubConfigurationDataType | ( | const UaPubSubConfigurationDataType & | other | ) |
Constructs an instance of the class UaPubSubConfigurationDataType with values from another UaPubSubConfigurationDataType object.
other | the other UaPubSubConfigurationDataType used to initialize the object |
UaPubSubConfigurationDataType::UaPubSubConfigurationDataType | ( | const OpcUa_PubSubConfigurationDataType & | other | ) |
Constructs an instance of the class UaPubSubConfigurationDataType with values from another OpcUa_PubSubConfigurationDataType structure.
other | the other OpcUa_PubSubConfigurationDataType used to initialize the object |
UaPubSubConfigurationDataType::UaPubSubConfigurationDataType | ( | const UaExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaPubSubConfigurationDataType initialized with value from a UaExtensionObject.
extensionObject | the extension object containing the PubSubConfigurationDataType |
UaPubSubConfigurationDataType::UaPubSubConfigurationDataType | ( | const OpcUa_ExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaPubSubConfigurationDataType initialized with value from an OpcUa_ExtensionObject structure.
extensionObject | the extension object containing the PubSubConfigurationDataType |
void UaPubSubConfigurationDataType::attach | ( | OpcUa_PubSubConfigurationDataType * | pValue | ) |
Attaches to an existing OpcUa_PubSubConfigurationDataType structure.
Don't manually free the attached structure afterwards, because UaPubSubConfigurationDataType is responsible for it now.
pValue | [in] Parameter to attach to. |
void UaPubSubConfigurationDataType::clear | ( | ) |
Clear the data of the UaPubSubConfigurationDataType.
|
static |
Copy OpcUa_PubSubConfigurationDataType data to a newly allocated OpcUa_PubSubConfigurationDataType.
source | Source to clone. |
|
static |
Copy OpcUa_PubSubConfigurationDataType data to an existing OpcUa_PubSubConfigurationDataType structure.
source | the source of the clone operation. |
copy | the destination of the clone operation. |
OpcUa_PubSubConfigurationDataType * UaPubSubConfigurationDataType::copy | ( | ) | const |
Copy UaPubSubConfigurationDataType data to a newly allocated OpcUa_PubSubConfigurationDataType.
void UaPubSubConfigurationDataType::copyTo | ( | OpcUa_PubSubConfigurationDataType * | pDst | ) | const |
Copy UaPubSubConfigurationDataType data to an existing OpcUa_PubSubConfigurationDataType structure.
pDst | the destination of this copy operation. |
OpcUa_PubSubConfigurationDataType * UaPubSubConfigurationDataType::detach | ( | OpcUa_PubSubConfigurationDataType * | pDst | ) |
Detaches the internal PubSubConfigurationDataType structure from this class.
This way you take over the control of freeing the PubSubConfigurationDataType data. If more than one reference exists, the data is copied to pDst instead of being detached.
pDst | [out] Pointer to an OpcUa_PubSubConfigurationDataType structure that receives the PubSubConfigurationDataType data. |
bool UaPubSubConfigurationDataType::operator!= | ( | const UaPubSubConfigurationDataType & | other | ) | const |
Compare two UaPubSubConfigurationDataType for inequality.
other | the UaPubSubConfigurationDataType to compare with. |
UaPubSubConfigurationDataType & UaPubSubConfigurationDataType::operator= | ( | const UaPubSubConfigurationDataType & | other | ) |
Assignment operator.
other | the UaPubSubConfigurationDataType to assign. |
bool UaPubSubConfigurationDataType::operator== | ( | const UaPubSubConfigurationDataType & | other | ) | const |
Compare two UaPubSubConfigurationDataType for equality.
other | the UaPubSubConfigurationDataType to compare with. |