C++ Based OPC UA Client/Server/PubSub SDK
1.7.8.584
|
Class connecting a UaVariableCache object with a monitoring item. More...
#include <uadatavariablecache.h>
Inherits SamplingExecution, and CacheSignal.
Inherited by SamplingItemCache.
Public Member Functions | |
CacheVariableConnector (OpcUa_Int32 samplingInterval, UaVariableCache *pUaVariableCache, IOVariableCallback *pIOVariableCallback, Session *pSession, UaMutexRefCounted *pSharedMutex=NULL) | |
Constructs a CacheVariableConnector object. More... | |
virtual | ~CacheVariableConnector () |
Destroys the CacheVariableConnector object. | |
IOVariableCallback * | pIOVariableCallback () |
Get IOVariableCallback used for the variable. More... | |
UaVariableCache * | pUaVariableCache () |
Get UaVariableCache used for the variable. More... | |
void | setSamplingRate (OpcUa_UInt32 samplingRate) |
Set the sampling rate of the item. More... | |
virtual void | sample () |
Sample signal for the item. | |
virtual void | setChanged () |
Signal a change in value or state. | |
virtual OpcUa_UInt32 | getSamplingRate () |
Get the sampling rate of the item. More... | |
virtual void | setInvalid () |
Set the item invalid. | |
virtual void | setValid (UaVariableCache *pUaVariableCache) |
Set the item valid. | |
virtual OpcUa_UInt32 | hIOVariable () |
Get the item handle for the signal defined by the IOManager. | |
virtual void | sethIOVariable (OpcUa_UInt32 handle) |
Set the item handle for the signal defined by the IOManager. | |
Public Member Functions inherited from SamplingExecution | |
SamplingExecution () | |
construction | |
virtual | ~SamplingExecution () |
destruction | |
Public Member Functions inherited from CacheSignal | |
virtual | ~CacheSignal () |
destruction | |
virtual UaNumericRange * | getIndexRange () |
Get the index range for the sampling item. More... | |
virtual OpcUa_Boolean | isPercentDeadband (OpcUa_Double &absoluteChange) |
Indicates if percent deadband is requested and provides the value of the absulute change necessary to pass the deadband filter. More... | |
Class connecting a UaVariableCache object with a monitoring item.
This class is used to connect a UaVariableCache object with a monitored item for sampling data by implementing the interfaces CacheSignal and SamplingEngine
CacheVariableConnector::CacheVariableConnector | ( | OpcUa_Int32 | samplingInterval, |
UaVariableCache * | pUaVariableCache, | ||
IOVariableCallback * | pIOVariableCallback, | ||
Session * | pSession, | ||
UaMutexRefCounted * | pSharedMutex = NULL |
||
) |
Constructs a CacheVariableConnector object.
[in] | samplingInterval | This interval defines the sampling rate of the monitored item |
[in] | pUaVariableCache | UaVariableCache used in the monitored item |
[in] | pIOVariableCallback | Callback interface for data changes |
[in] | pSession | Session object responsible for the sampling item |
[in] | pSharedMutex | Protect concurrent access to members |
|
virtual |
|
inline |
Get IOVariableCallback used for the variable.
|
inline |
Get UaVariableCache used for the variable.
|
inline |
Set the sampling rate of the item.
samplingRate | the sampling Rate in Milliseconds. |