4 * Created on: Oct 20, 2010
15 #ifndef W1_SCAN_ROOTDIR
16 #define W1_SCAN_ROOTDIR "/sys/bus/w1/devices"
20 #define W1_SLAVE_FILE "w1_slave";
26 W1Device(dirent *direntry, int family_code_param, std::string id_param);
28 int get_family_code();
30 std::string get_name();
31 virtual void printout();
32 void set_name(std::string name_param);
33 virtual std::string get_value() = 0;
34 virtual std::string get_unit() = 0;
35 std::string get_time();
37 virtual bool is_supported_family_code(int family_code) = 0;
42 std::string slave_file;
47 #endif /* W1DEVICE_HH_ */