X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src%2FW1Store.hh;h=396b419d005d5d6ca89bcb6175ccbc8d3428b76e;hb=64f4c95cf6d3a772bfc721081dc39e2105c2756c;hp=c096816533e5f9c07bdb2d38ddc5c59910944a55;hpb=87afaf6ff028091d7de11f577bc1f24f1bd0d3e3;p=lib1wire.git diff --git a/src/W1Store.hh b/src/W1Store.hh index c096816..396b419 100644 --- a/src/W1Store.hh +++ b/src/W1Store.hh @@ -16,9 +16,13 @@ namespace w1 { public: W1Store(); virtual ~W1Store(); - static std::string location; - static void set_location(std::string location_param); + static std::string get_location_base_dir(); + static void set_location_base_dir(std::string location_param); + static std::string get_location_dir(std::string device_id, struct tm *ltime); + static std::string get_location_file(std::string device_id, struct tm *ltime); static void store(std::string device_id, std::list *string_list); + protected: + static std::string location_base_dir; }; }