10 #ifndef NDSDELEGATEPVINIMPL_H
11 #define NDSDELEGATEPVINIMPL_H
14 #include "nds3/impl/pvBaseInImpl.h"
43 typedef std::function<void (timespec*, T*)>
read_t;
61 virtual void read(timespec* pTimestamp, T* pValue)
const;
77 #endif // NDSDELEGATEPVINIMPL_H
virtual void read(timespec *pTimestamp, T *pValue) const
Called when the control system wants to read a value.
virtual dataType_t getDataType() const
Return the PV's data type.
std::function< void(timespec *, T *)> read_t
Definition of the method used to read the value.
Definition: pvDelegateInImpl.h:43
The node's role is not specified.
Defines all the enumeration and common types used across the NDS library.
PVDelegateInImpl(const std::string &name, read_t readFunction, const inputPvType_t pvType=inputPvType_t::generic)
Constructor for read-only PVs. Specifies the method used for reading the value.
Base class for all the PVs.
Definition: pvBaseInImpl.h:29
Delegating Input PV. Delegates the read operation to an user defined function.
Definition: pvDelegateInImpl.h:33
dataType_t
PV data types.
Definition: definitions.h:53
inputPvType_t
Defines an input PV's role: this information is used to build the PV's external name when using the N...
Definition: definitions.h:118