X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src%2FFactory.hh;h=5eccf31f12adb5ce63bc4e3d2d2ccb806212ff6e;hb=22f0b4dd0b81bce75ac7a842a72ca86eec02f7bc;hp=c4adccb2e46c790a437c6ed41cb1f96b40522a78;hpb=5b8fec4ada47c630e4484d21408fb354d0fb7d93;p=lib1wire.git diff --git a/src/Factory.hh b/src/Factory.hh index c4adccb..5eccf31 100644 --- a/src/Factory.hh +++ b/src/Factory.hh @@ -28,14 +28,14 @@ namespace w1 { virtual ~Factory(); static std::list get_device_list(); private: - //int parse_family_code(std::string folder_name); - static plp::Device *create_w1_device(int family_code_param, string device_id_param, string type_param, dirent *direntry_param); - static plp::Device *create_w1_device(int family_code, std::string device_id, dirent *direntry_param); - static plp::Device *create_w1_device(std::string device_type_param, std::string device_id_param); - static plp::Device *create_w1_device(dirent *direntry_param, int *err_code_param); + //int parse_family_code(string folder_name); + static plp::Device *create_device(int family_code_param, string device_type_param, string device_id_param, dirent *direntry_param); + static plp::Device *create_device(int family_code, string device_id, dirent *direntry_param); + static plp::Device *create_device(string device_type_param, string device_id_param); + static plp::Device *create_device(dirent *direntry_param, int *err_code_param); static std::list get_data_reader_list(); - static int get_family_code_by_device_type(std::string device_type_param); - static std::string get_device_type_by_family_code(int family_code_param); + static int get_family_code_by_device_type(string device_type_param); + static string get_device_type_by_family_code(int family_code_param); }; }