X-Git-Url: http://pilppa.org/gitweb/?p=lib1wire.git;a=blobdiff_plain;f=src%2FDeviceTypeSensor.hh;fp=src%2FDeviceTypeSensor.hh;h=99403eff0dc6689385e3e89fb59cadca52e905c9;hp=0000000000000000000000000000000000000000;hb=6caee6cb22c1334701afe7aa30bcf9668ca3a5c5;hpb=9d1c70c1f8f130ad17cf8e58d54387714b6f43b5 diff --git a/src/DeviceTypeSensor.hh b/src/DeviceTypeSensor.hh new file mode 100644 index 0000000..99403ef --- /dev/null +++ b/src/DeviceTypeSensor.hh @@ -0,0 +1,24 @@ +/* + * DeviceTypeSensor.hh + * + * Created on: Feb 28, 2011 + * Author: lamikr + */ + +#ifndef DEVICETYPESENSOR_HH_ +#define DEVICETYPESENSOR_HH_ + +#include + +#include "DeviceTypeGeneric.hh" + +namespace plp { + class DeviceTypeSensor : public DeviceTypeGeneric { + public: + virtual std::string get_unit() = 0; + virtual plp::Data *get_data() = 0; + virtual void save_data() = 0; + }; +} + +#endif /* DEVICETYPESENSOR_HH_ */