libwallaby  v23
The wallaby standard library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sensor.hpp
Go to the documentation of this file.
1 /*
2  * sensor.hpp
3  *
4  * Created on: Nov 12, 2015
5  * Author: Joshua Southerland
6  */
7 
8 #ifndef INCLUDE_WALLABY_SENSOR_HPP_
9 #define INCLUDE_WALLABY_SENSOR_HPP_
10 
11 #include "export.h"
12 
13 template<typename T>
14 #ifdef SWIG
15 class Sensor
16 #else
18 #endif
19 {
20 public:
21  virtual ~Sensor() {}
22 
23  virtual T value() const = 0;
24 };
25 
26 
27 #endif /* INCLUDE_WALLABY_SENSOR_HPP_ */
Definition: sensor.hpp:17
virtual T value() const =0
#define EXPORT_SYM
Definition: export.h:14
virtual ~Sensor()
Definition: sensor.hpp:21