]> pilppa.org Git - libplp.git/blob - src/SensorDevice.hh
b6830344bfd516270392c6bc86fc0807e69ec0d5
[libplp.git] / src / SensorDevice.hh
1 /*
2  * DeviceTypeSensor.hh
3  *
4  *  Created on: Feb 28, 2011
5  *      Author: lamikr
6  */
7
8 #ifndef DEVICETYPESENSOR_HH_
9 #define DEVICETYPESENSOR_HH_
10
11 #include <string>
12
13 #include "DataReader.hh"
14 #include "Device.hh"
15
16 using namespace plp;
17
18 namespace plp {
19         class SensorDevice : public Device {
20                 public:
21                         SensorDevice(std::string id_param, std::string type_param) : Device(id_param, type_param) {}
22                         virtual ~SensorDevice() {}
23                         virtual const DataReader *get_device_data() = 0;
24                         virtual string get_unit() = 0;
25                         virtual plp::Data *get_data() = 0;
26         };
27 }
28
29 #endif /* DEVICETYPESENSOR_HH_ */