C++ Based OPC UA Client/Server/PubSub SDK  1.7.6.537
UserDataGetCounterBoolean Class Reference

Specialized UserData class for UaVariable where the UserData class provides access to an Boolean value. More...

#include <nodemanagerns1.h>

Inherits UserDataVariableGetValue.

Public Member Functions

virtual void setInvalid ()
 Invalidate the user data.
 
virtual void getDataValue (UaDataValue &dataValue) const
 Default implementation for getting the value as DataValue. More...
 
- Public Member Functions inherited from UserDataVariableGetValue
 UserDataVariableGetValue ()
 Creates an object of the type UserDataVariableGetValue. More...
 
virtual ~UserDataVariableGetValue ()
 Destroys the UserDataVariableGetValue object. More...
 
UserDataType getUserDataType () const
 Returns UserDataType_GetValue as UserDataType for the class UserDataVariableGetValue.
 
virtual OpcUa_StatusCode setDataValue (const UaDataValue &dataValue)
 Default implementation for setting the value. More...
 
- Public Member Functions inherited from UserDataBase
 UserDataBase ()
 Creates an object of the type UserDataBase. More...
 
virtual ~UserDataBase ()
 Destroys the UserDataBase object. More...
 

Additional Inherited Members

- Public Types inherited from UserDataBase
enum  UserDataType { UserDataType_Custom, UserDataType_GetValue }
 Enumeration used to detect the type of user data for further processing. More...
 

Detailed Description

Specialized UserData class for UaVariable where the UserData class provides access to an Boolean value.

This class is used for instances of the UaVariable where polling access through NodeManagerUaNode::readValues is used. This feature is supported by the node manager for namespace 1 by default.

This class can be used to provide the value of the variable through the UserData. This class can be used for a Boolean value in memory where the update of the data is not reported through internal events and the data needs to be polled.

The access to the OpcUa_Boolean variable memory is synchronized by using the shared mutex passed to this class. Therefore the same mutex must be locked when changing the OpcUa_Boolean variable in memory.

Member Function Documentation

void UserDataGetCounterBoolean::getDataValue ( UaDataValue dataValue) const
virtual

Default implementation for getting the value as DataValue.

The default implementation is using getValue(). An implementation class can overwrite this method and return the DataValue directly

Reimplemented from UserDataVariableGetValue.


The documentation for this class was generated from the following files: