#include "DeviceConfig.hh"
#include "Factory.hh"
-#include "W1Store.hh"
+#include "StoreDay.hh"
#include "W1Device.hh"
-using namespace w1;
using namespace std;
+using namespace w1;
+using namespace plp;
W1Device::W1Device(int family_code_param,
string device_id_param,
temp_str = W1_SLAVE_FILE;
dir_path = rootdir + "/" + direntry_param->d_name;
slave_file = dir_path + "/" + temp_str;
- log_debug("w1 data file: %s\n", slave_file.c_str());
+ log_debug("1-wire device's data file: %s\n", slave_file.c_str());
family_code = family_code_param;
id = device_id_param;
name = "";
int dec_precision;
dec_precision = get_data_decimal_precision();
- W1Store::save(id, &memory_cache, dec_precision);
+ StoreDay::save(id, &memory_cache, dec_precision);
for(iter = memory_cache.begin(); iter != memory_cache.end(); iter++) {
data = (Data *)*iter;
delete(data);