]> pilppa.org Git - lib1wire.git/blobdiff - src/DeviceTypeSensor.hh
Started defining generic device type base classes that could be used
[lib1wire.git] / src / DeviceTypeSensor.hh
diff --git a/src/DeviceTypeSensor.hh b/src/DeviceTypeSensor.hh
new file mode 100644 (file)
index 0000000..99403ef
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * DeviceTypeSensor.hh
+ *
+ *  Created on: Feb 28, 2011
+ *      Author: lamikr
+ */
+
+#ifndef DEVICETYPESENSOR_HH_
+#define DEVICETYPESENSOR_HH_
+
+#include <string>
+
+#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_ */