#include <nodemanagerns1.h>
Public Member Functions | |
UaVariableNs1UserDataGetCounter (int *pData) | |
void | setInvalid () |
virtual OpcUa_StatusCode | getValue (UaVariant &value) const |
Specialized UserData class for UaVariable in namespace 1 where the UserData class provides access to a integer counter.
This class is used for instances of the UaVariable where polling access through NodeManagerUaNode::readValues is used for variables in namespace 1.
This class can be used to provide the value of the variable through the UserData. This option can be used for an integer value in memory where the update of the data is not reported through internal events and the data needs to be polled.
UaVariableNs1UserDataGetCounter::UaVariableNs1UserDataGetCounter | ( | int * | pData ) |
Constructs a user data object for a Variable containing an integer value.
[in] | pData | Pointer to the integer value used as value for the variable |
OpcUa_StatusCode UaVariableNs1UserDataGetCounter::getValue | ( | UaVariant & | value ) | const [virtual] |
Get the value for the variable.
Implements UaVariableNs1UserDataGetValue.
void UaVariableNs1UserDataGetCounter::setInvalid | ( | ) |
Invalidate the user data.