NDS3  1.0.0
API reference manual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pvBaseOut.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 NDSPVBASEOUT_H
11 #define NDSPVBASEOUT_H
12 
22 #include "nds3/pvBase.h"
23 
24 namespace nds
25 {
26 
27 class PVBaseOutImpl;
28 
35 class NDS3_API PVBaseOut: public PVBase
36 {
37 public:
44  PVBaseOut();
45 
46 #ifndef SWIG
47  PVBaseOut(std::shared_ptr<PVBaseOutImpl> pvImpl);
48 #endif
49 
63  template<typename T>
64  void read(timespec* pTimestamp, T* pValue) const;
65 
77  template<typename T>
78  void write(const timespec& timestamp, const T& value);
79 
91  void subscribeTo(const std::string& inputPVName);
92 
93 };
94 
95 }
96 
97 #endif // NDSPVBASEOUT_H
Represents an output PV.
Definition: pvBaseOut.h:35
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