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