C++ UA Server SDK
1.5.0.318
|
Wrapper class for the UA stack structure OpcUa_ServiceCounterDataType. More...
#include <uaservicecounterdatatype.h>
Public Member Functions | |
UaServiceCounterDataType () | |
Constructs an instance of the class UaServiceCounterDataType with empty default values. | |
UaServiceCounterDataType (const UaServiceCounterDataType &other) | |
Constructs an instance of the class UaServiceCounterDataType with values from another UaServiceCounterDataType object. More... | |
UaServiceCounterDataType (const OpcUa_ServiceCounterDataType &other) | |
Constructs an instance of the class UaServiceCounterDataType with values from another OpcUa_ServiceCounterDataType structure. More... | |
UaServiceCounterDataType (OpcUa_UInt32 totalCount, OpcUa_UInt32 errorCount) | |
Constructs an instance of the class UaServiceCounterDataType with values provided in the constructor. | |
UaServiceCounterDataType (const UaExtensionObject &extensionObject) | |
Constructs an instance of the class UaServiceCounterDataType initialized with value from a UaExtensionObject. More... | |
UaServiceCounterDataType (const OpcUa_ExtensionObject &extensionObject) | |
Constructs an instance of the class UaServiceCounterDataType initialized with value from an OpcUa_ExtensionObject structure. More... | |
~UaServiceCounterDataType () | |
Destroys the UaServiceCounterDataType object. | |
void | clear () |
Clear the data of the UaServiceCounterDataType. More... | |
bool | operator== (const UaServiceCounterDataType &other) const |
Compare two UaServiceCounterDataType for equality. More... | |
bool | operator!= (const UaServiceCounterDataType &other) const |
Compare two UaServiceCounterDataType for inequality. More... | |
UaServiceCounterDataType & | operator= (const UaServiceCounterDataType &other) |
Assignment operator. More... | |
OpcUa_ServiceCounterDataType * | copy () const |
Copy UaServiceCounterDataType data to a newly allocated OpcUa_ServiceCounterDataType. More... | |
void | copyTo (OpcUa_ServiceCounterDataType *pDst) const |
Copy UaServiceCounterDataType data to an existing OpcUa_ServiceCounterDataType structure. More... | |
void | attach (OpcUa_ServiceCounterDataType *pValue) |
Attaches to an existing OpcUa_ServiceCounterDataType structure. More... | |
OpcUa_ServiceCounterDataType * | detach (OpcUa_ServiceCounterDataType *pDst) |
Detaches the internal ServiceCounterDataType structure from this class. More... | |
OpcUa_UInt32 | getTotalCount () const |
The number of Service requests that have been received. | |
OpcUa_UInt32 | getErrorCount () const |
The total number of Service requests that were rejected. | |
void | setTotalCount (OpcUa_UInt32 totalCount) |
The number of Service requests that have been received. | |
void | setErrorCount (OpcUa_UInt32 errorCount) |
The total number of Service requests that were rejected. | |
Static Public Member Functions | |
static OpcUa_ServiceCounterDataType * | clone (const OpcUa_ServiceCounterDataType &source) |
Copy OpcUa_ServiceCounterDataType data to a newly allocated OpcUa_ServiceCounterDataType. More... | |
static void | cloneTo (const OpcUa_ServiceCounterDataType &source, OpcUa_ServiceCounterDataType ©) |
Copy OpcUa_ServiceCounterDataType data to an existing OpcUa_ServiceCounterDataType structure. More... | |
Wrapper class for the UA stack structure OpcUa_ServiceCounterDataType.
This class encapsulates the native OpcUa_ServiceCounterDataType structure and handles memory allocation and cleanup for you. UaServiceCounterDataType uses implicit sharing to avoid needless copying and to boost the performance. Only if you modify a shared ServiceCounterDataType it creates a copy for that (copy-on-write). So assigning another UaServiceCounterDataType or passing it as parameter needs constant time and is nearly as fast as assigning a pointer.
Contains diagnostic information about subscriptions.
UaServiceCounterDataType::UaServiceCounterDataType | ( | const UaServiceCounterDataType & | other | ) |
Constructs an instance of the class UaServiceCounterDataType with values from another UaServiceCounterDataType object.
other | the other UaServiceCounterDataType used to initialize the object |
UaServiceCounterDataType::UaServiceCounterDataType | ( | const OpcUa_ServiceCounterDataType & | other | ) |
Constructs an instance of the class UaServiceCounterDataType with values from another OpcUa_ServiceCounterDataType structure.
other | the other OpcUa_ServiceCounterDataType used to initialize the object |
UaServiceCounterDataType::UaServiceCounterDataType | ( | const UaExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaServiceCounterDataType initialized with value from a UaExtensionObject.
extensionObject | the extension object containing the ServiceCounterDataType |
UaServiceCounterDataType::UaServiceCounterDataType | ( | const OpcUa_ExtensionObject & | extensionObject | ) |
Constructs an instance of the class UaServiceCounterDataType initialized with value from an OpcUa_ExtensionObject structure.
extensionObject | the extension object containing the ServiceCounterDataType |
void UaServiceCounterDataType::attach | ( | OpcUa_ServiceCounterDataType * | pValue | ) |
Attaches to an existing OpcUa_ServiceCounterDataType structure.
Don't manually free the attached structure afterwards, because UaServiceCounterDataType is responsible for it now.
pValue | [in] Parameter to attach to. |
void UaServiceCounterDataType::clear | ( | ) |
Clear the data of the UaServiceCounterDataType.
|
static |
Copy OpcUa_ServiceCounterDataType data to a newly allocated OpcUa_ServiceCounterDataType.
source | Source to clone. |
|
static |
Copy OpcUa_ServiceCounterDataType data to an existing OpcUa_ServiceCounterDataType structure.
source | the source of the clone operation. |
copy | the destination of the clone operation. |
OpcUa_ServiceCounterDataType * UaServiceCounterDataType::copy | ( | ) | const |
Copy UaServiceCounterDataType data to a newly allocated OpcUa_ServiceCounterDataType.
void UaServiceCounterDataType::copyTo | ( | OpcUa_ServiceCounterDataType * | pDst | ) | const |
Copy UaServiceCounterDataType data to an existing OpcUa_ServiceCounterDataType structure.
pDst | the destination of this copy operation. |
OpcUa_ServiceCounterDataType * UaServiceCounterDataType::detach | ( | OpcUa_ServiceCounterDataType * | pDst | ) |
Detaches the internal ServiceCounterDataType structure from this class.
This way you take over the control of freeing the ServiceCounterDataType data. If more than one reference exists, the data is copied to pDst instead of being detached.
pDst | [out] Pointer to an OpcUa_ServiceCounterDataType structure that receives the ServiceCounterDataType data. |
bool UaServiceCounterDataType::operator!= | ( | const UaServiceCounterDataType & | other | ) | const |
Compare two UaServiceCounterDataType for inequality.
other | the UaServiceCounterDataType to compare with. |
UaServiceCounterDataType & UaServiceCounterDataType::operator= | ( | const UaServiceCounterDataType & | other | ) |
Assignment operator.
other | the UaServiceCounterDataType to assign. |
bool UaServiceCounterDataType::operator== | ( | const UaServiceCounterDataType & | other | ) | const |
Compare two UaServiceCounterDataType for equality.
other | the UaServiceCounterDataType to compare with. |