10 #ifndef NDSPVVARIABLEOUTIMPL_H
11 #define NDSPVVARIABLEOUTIMPL_H
14 #include "nds3/impl/pvBaseOutImpl.h"
34 class PVVariableOutImpl:
public PVBaseOutImpl
51 virtual void read(timespec* pTimestamp, T* pValue)
const;
59 virtual void write(
const timespec& timestamp,
const T& value);
80 void getValue(timespec* pTime, T* pValue)
const;
86 mutable std::mutex m_pvMutex;
91 #endif // NDSPVVARIABLEOUTIMPL_H
virtual dataType_t getDataType() const
Return the data type of the PV.
virtual void write(const timespec ×tamp, const T &value)
Called when the control system wants to write a value into the PV.
virtual void read(timespec *pTimestamp, T *pValue) const
Called when the control system wants to read a value from the PV.
The node's role is not specified.
outputPvType_t
Defines an output PV's role: this information is used to build the PV's external name when using the ...
Definition: definitions.h:130
PVVariableOutImpl(const std::string &name, const outputPvType_t pvType=outputPvType_t::generic)
Constructor.
T getValue() const
Call to retrieve the value stored in the PV.
dataType_t
PV data types.
Definition: definitions.h:53