]> pilppa.org Git - lib1wire.git/blob - src/W1Store.hh
396b419d005d5d6ca89bcb6175ccbc8d3428b76e
[lib1wire.git] / src / W1Store.hh
1 /*
2  * W1Store.hh
3  *
4  *  Created on: Oct 31, 2010
5  *      Author: lamikr
6  */
7
8 #ifndef W1STORE_HH_
9 #define W1STORE_HH_
10
11 #include <string>
12 #include <list>
13
14 namespace w1 {
15         class W1Store {
16                 public:
17                         W1Store();
18                         virtual ~W1Store();
19                         static std::string get_location_base_dir();
20                         static void set_location_base_dir(std::string location_param);
21                         static std::string get_location_dir(std::string device_id, struct tm *ltime);
22                         static std::string get_location_file(std::string device_id, struct tm *ltime);
23                         static void store(std::string device_id, std::list<std::string> *string_list);
24                 protected:
25                         static std::string location_base_dir;
26         };
27 }
28
29 #endif /* W1STORE_HH_ */