NDS3  1.0.0
API reference manual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pvBaseIn.h
Go to the documentation of this file.
1 /*
2  * Nominal Device Support v3 (NDS3)
3  *
4  * Copyright (c) 2015 Cosylab d.d.
5  *
6  * For more information about the license please refer to the license.txt
7  * file included in the distribution.
8  */
9 
10 #ifndef NDSPVBASEIN_H
11 #define NDSPVBASEIN_H
12 
22 #include "nds3/pvBase.h"
23 
24 namespace nds
25 {
26 
27 class PVBaseInImpl;
28 
35 class NDS3_API PVBaseIn: public PVBase
36 {
37 public:
44  PVBaseIn();
45 
46 #ifndef SWIG
47  PVBaseIn(std::shared_ptr<PVBaseInImpl> pvImpl);
48 #endif
49 
63  template<typename T>
64  void read(timespec* pTimestamp, T* pValue) const;
65 
87  template<typename T>
88  void push(const timespec& timestamp, const T& value);
89 
109  void setDecimation(const std::uint32_t decimation);
110 
122  void replicateFrom(const std::string& sourceInputPVName);
123 
124 };
125 
126 }
127 
128 #endif // NDSPVBASEIN_H
Defines the base class for all the input and output PVs.
Base class for objects that process a single PV (or attribute in Tango parlance). ...
Definition: pvBase.h:42
Represents an input PV.
Definition: pvBaseIn.h:35