UA Server SDK C++ Bundle
1.4.2.275
|
Wrapper class for the UA stack structure OpcUa_SamplingIntervalDiagnosticsDataType. More...
#include <uasamplingintervaldiagnosticsdatatype.h>
Public Member Functions | |
UaSamplingIntervalDiagnosticsDataType () | |
Constructs an instance of the class UaSamplingIntervalDiagnosticsDataType with empty default values. | |
UaSamplingIntervalDiagnosticsDataType (const UaSamplingIntervalDiagnosticsDataType &other) | |
Constructs an instance of the class UaSamplingIntervalDiagnosticsDataType with values from another UaSamplingIntervalDiagnosticsDataType object. More... | |
UaSamplingIntervalDiagnosticsDataType (const OpcUa_SamplingIntervalDiagnosticsDataType &other) | |
Constructs an instance of the class UaSamplingIntervalDiagnosticsDataType with values from another OpcUa_SamplingIntervalDiagnosticsDataType structure. More... | |
UaSamplingIntervalDiagnosticsDataType (OpcUa_Double samplingInterval, OpcUa_UInt32 monitoredItemCount, OpcUa_UInt32 maxMonitoredItemCount, OpcUa_UInt32 disabledMonitoredItemCount) | |
Constructs an instance of the class UaSamplingIntervalDiagnosticsDataType with values provided in the constructor. | |
UaSamplingIntervalDiagnosticsDataType (const UaExtensionObject &extensionObject) | |
Constructs an instance of the class UaSamplingIntervalDiagnosticsDataType initialized with value from a UaExtensionObject. More... | |
UaSamplingIntervalDiagnosticsDataType (const OpcUa_ExtensionObject &extensionObject) | |
Constructs an instance of the class UaSamplingIntervalDiagnosticsDataType initialized with value from an OpcUa_ExtensionObject structure. More... | |
~UaSamplingIntervalDiagnosticsDataType () | |
Destroys the UaSamplingIntervalDiagnosticsDataType object. | |
void | clear () |
Clear the data of the UaSamplingIntervalDiagnosticsDataType. More... | |
bool | operator== (const UaSamplingIntervalDiagnosticsDataType &other) const |
Compare two UaSamplingIntervalDiagnosticsDataType if they are similar. More... | |
bool | operator!= (const UaSamplingIntervalDiagnosticsDataType &other) const |
Returns true if the other UaSamplingIntervalDiagnosticsDataType is not equal to this. More... | |
UaSamplingIntervalDiagnosticsDataType & | operator= (const UaSamplingIntervalDiagnosticsDataType &other) |
Assignment operator. More... | |
OpcUa_SamplingIntervalDiagnosticsDataType * | copy () const |
Copy UaSamplingIntervalDiagnosticsDataType data to a newly allocated OpcUa_SamplingIntervalDiagnosticsDataType. More... | |
void | copyTo (OpcUa_SamplingIntervalDiagnosticsDataType *pDst) const |
Copy UaSamplingIntervalDiagnosticsDataType data to an existing OpcUa_SamplingIntervalDiagnosticsDataType structure. More... | |
void | attach (OpcUa_SamplingIntervalDiagnosticsDataType *pValue) |
Attaches the data of the parameter pValue. More... | |
OpcUa_SamplingIntervalDiagnosticsDataType * | detach (OpcUa_SamplingIntervalDiagnosticsDataType *pDst) |
Detaches the internal SamplingIntervalDiagnosticsDataType structure from this class. More... | |
Static Public Member Functions | |
static OpcUa_SamplingIntervalDiagnosticsDataType * | clone (const OpcUa_SamplingIntervalDiagnosticsDataType &source) |
Copy OpcUa_SamplingIntervalDiagnosticsDataType data to a newly allocated OpcUa_SamplingIntervalDiagnosticsDataType. More... | |
static void | cloneTo (const OpcUa_SamplingIntervalDiagnosticsDataType &source, OpcUa_SamplingIntervalDiagnosticsDataType ©) |
Copy OpcUa_SamplingIntervalDiagnosticsDataType data to an existing OpcUa_SamplingIntervalDiagnosticsDataType structure. More... | |
Wrapper class for the UA stack structure OpcUa_SamplingIntervalDiagnosticsDataType.
This class encapsulates the native OpcUa_SamplingIntervalDiagnosticsDataType structure and handles memory allocation and cleanup for you. UaSamplingIntervalDiagnosticsDataType uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared SamplingIntervalDiagnosticsDataType it creates a copy for that (copy-on-write). So assigning another UaSamplingIntervalDiagnosticsDataType or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.
UaSamplingIntervalDiagnosticsDataType::UaSamplingIntervalDiagnosticsDataType | ( | const UaSamplingIntervalDiagnosticsDataType & | other | ) |
Constructs an instance of the class UaSamplingIntervalDiagnosticsDataType with values from another UaSamplingIntervalDiagnosticsDataType object.
other | the other UaSamplingIntervalDiagnosticsDataType used to initialize the object |
UaSamplingIntervalDiagnosticsDataType::UaSamplingIntervalDiagnosticsDataType | ( | const OpcUa_SamplingIntervalDiagnosticsDataType & | other | ) |
Constructs an instance of the class UaSamplingIntervalDiagnosticsDataType with values from another OpcUa_SamplingIntervalDiagnosticsDataType structure.
other | the other OpcUa_SamplingIntervalDiagnosticsDataType used to initialize the object |
UaSamplingIntervalDiagnosticsDataType::UaSamplingIntervalDiagnosticsDataType | ( | const UaExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaSamplingIntervalDiagnosticsDataType initialized with value from a UaExtensionObject.
extensionObject | the extension object containing the SamplingIntervalDiagnosticsDataType |
UaSamplingIntervalDiagnosticsDataType::UaSamplingIntervalDiagnosticsDataType | ( | const OpcUa_ExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaSamplingIntervalDiagnosticsDataType initialized with value from an OpcUa_ExtensionObject structure.
extensionObject | the extension object containing the SamplingIntervalDiagnosticsDataType |
void UaSamplingIntervalDiagnosticsDataType::attach | ( | OpcUa_SamplingIntervalDiagnosticsDataType * | pValue | ) |
Attaches the data of the parameter pValue.
Don't clear the data of pValue afterwards manually, because UaSamplingIntervalDiagnosticsDataType is responsible for it now.
[in] | pValue | Parameter to attach to. |
void UaSamplingIntervalDiagnosticsDataType::clear | ( | ) |
Clear the data of the UaSamplingIntervalDiagnosticsDataType.
|
static |
Copy OpcUa_SamplingIntervalDiagnosticsDataType data to a newly allocated OpcUa_SamplingIntervalDiagnosticsDataType.
source | Source to clone. |
|
static |
Copy OpcUa_SamplingIntervalDiagnosticsDataType data to an existing OpcUa_SamplingIntervalDiagnosticsDataType structure.
source | the source of the clone operation. |
copy | the destination of the clone operation. |
OpcUa_SamplingIntervalDiagnosticsDataType * UaSamplingIntervalDiagnosticsDataType::copy | ( | ) | const |
Copy UaSamplingIntervalDiagnosticsDataType data to a newly allocated OpcUa_SamplingIntervalDiagnosticsDataType.
void UaSamplingIntervalDiagnosticsDataType::copyTo | ( | OpcUa_SamplingIntervalDiagnosticsDataType * | pDst | ) | const |
Copy UaSamplingIntervalDiagnosticsDataType data to an existing OpcUa_SamplingIntervalDiagnosticsDataType structure.
pDst | the destination of this copy operation. |
OpcUa_SamplingIntervalDiagnosticsDataType * UaSamplingIntervalDiagnosticsDataType::detach | ( | OpcUa_SamplingIntervalDiagnosticsDataType * | pDst | ) |
Detaches the internal SamplingIntervalDiagnosticsDataType structure from this class.
This way you take over the control of releasing the SamplingIntervalDiagnosticsDataType data. If more than one reference exists, the data is copied to pDst instead of being detached.
[out] | pDst | Pointer to OpcUa_SamplingIntervalDiagnosticsDataType structure that receives the SamplingIntervalDiagnosticsDataType data. |
bool UaSamplingIntervalDiagnosticsDataType::operator!= | ( | const UaSamplingIntervalDiagnosticsDataType & | other | ) | const |
Returns true if the other UaSamplingIntervalDiagnosticsDataType is not equal to this.
other | the UaSamplingIntervalDiagnosticsDataType to compare. |
UaSamplingIntervalDiagnosticsDataType & UaSamplingIntervalDiagnosticsDataType::operator= | ( | const UaSamplingIntervalDiagnosticsDataType & | other | ) |
Assignment operator.
other | the UaSamplingIntervalDiagnosticsDataType to assign. |
bool UaSamplingIntervalDiagnosticsDataType::operator== | ( | const UaSamplingIntervalDiagnosticsDataType & | other | ) | const |
Compare two UaSamplingIntervalDiagnosticsDataType if they are similar.
other | the UaSamplingIntervalDiagnosticsDataType to compare. |