]> pilppa.org Git - libplp.git/blobdiff - src/DataReader.hh
Data read optimizations
[libplp.git] / src / DataReader.hh
index 23a39d3912ec43afa02657838da46477d2e146f8..3fe8c3bcbfc430bb42efb2da4ae5d9c62f3ccf9e 100644 (file)
@@ -18,6 +18,9 @@
 #include <time.h>
 
 namespace plp {
+       /**
+        * DataReader is able to read old data from the device.
+        */
        class DataReader {
                public:
                        DataReader(std::string device_id);
@@ -60,7 +63,7 @@ namespace plp {
 
                        DataRange *get_data(Date *start_date, Date *end_date);
                        std::string get_device_id();
-                       std::string get_device_type();
+                       bool get_device_type(std::string& type_param);
                        Data *get_latest_data();
                protected:
                        std::string                     device_id;