NDS3  1.0.0
API reference manual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pvVariableOut.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 NDSPVVARIABLEOUT_H
11 #define NDSPVVARIABLEOUT_H
12 
23 #include "nds3/definitions.h"
24 #include "nds3/pvBaseOut.h"
25 
26 namespace nds
27 {
28 
49 template <typename T>
50 class NDS3_API PVVariableOut: public PVBaseOut
51 {
52 public:
53 
54 
60  PVVariableOut();
61 
67  PVVariableOut(const std::string& name);
68 
75  T getValue() const;
76 
84  void getValue(timespec* pTime, T* pValue) const;
85 };
86 
87 }
88 
89 #endif // NDSPVVARIABLEOUT_H
Represents an output PV.
Definition: pvBaseOut.h:35
Defines the base class for the output PVs.
Defines all the enumeration and common types used across the NDS library.
An output PV object that also stores the value so it does not need to delegate the read and write fun...
Definition: pvVariableOut.h:50