NDS3  1.0.0
API reference manual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pvBase.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 NDSPVBASE_H
11 #define NDSPVBASE_H
12 
22 #include <cstdint>
23 #include <time.h>
24 #include <string>
25 #include "nds3/definitions.h"
26 #include "nds3/base.h"
27 
28 namespace nds
29 {
30 
31 class PVBaseImpl;
32 
42 class NDS3_API PVBase: public Base
43 {
44 public:
45  PVBase();
46 
47 #ifndef SWIG
48  PVBase(std::shared_ptr<PVBaseImpl> pvImpl);
49 #endif
50 
56  void setDescription(const std::string& description);
57 
63  void setUnits(const std::string& units);
64 
72  void setInterfaceName(const std::string& interfaceName);
73 
82  void setScanType(const scanType_t scanType, const double periodSeconds = 1);
83 
90  void setMaxElements(const size_t maxElements);
91 
98  void setEnumeration(const enumerationStrings_t& enumerations);
99 
107  void processAtInit(const bool bProcessAtInit);
108 
109 };
110 
111 }
112 #endif // NDSPVBASE_H
scanType_t
Specify how to get the PV value.
Definition: definitions.h:68
This is the base class for all the NDS3 public classes that declare a device part (node...
Definition: base.h:45
Defines all the enumeration and common types used across the NDS library.
std::list< std::string > enumerationStrings_t
List of strings used for enumeration in PVs that support the enumeration field.
Definition: definitions.h:288
Defines the base class used for nodes, PVs, state machines and acquisition devices.
Base class for objects that process a single PV (or attribute in Tango parlance). ...
Definition: pvBase.h:42