4 * Created on: Feb 28, 2011
8 #ifndef DEVICETYPESENSOR_HH_
9 #define DEVICETYPESENSOR_HH_
13 #include "DataReader.hh"
20 * This class defines methods for Device which can return and collect data.
22 class SensorDevice : public Device {
24 SensorDevice(std::string id_param, std::string type_param) : Device(id_param, type_param) {}
25 virtual ~SensorDevice() {}
27 * Returns DataReader class for the device.
29 virtual const DataReader *get_datareader() = 0;
31 * Returns the unit used by the device data.
33 virtual string get_unit() = 0;
35 * Returns latest data that is available for the device.
37 virtual plp::Data *get_data() = 0;
41 #endif /* DEVICETYPESENSOR_HH_ */