X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=src%2FFactory.hh;fp=src%2FFactory.hh;h=595e271e1b9a717e637bff9c6ce611bd2e3c40fc;hb=83dba70b46600014932da34e8744ba70584077aa;hp=0000000000000000000000000000000000000000;hpb=9c47855d3ddc3d09b9733c43d420a7d5b739bd37;p=lib1wire.git diff --git a/src/Factory.hh b/src/Factory.hh new file mode 100644 index 0000000..595e271 --- /dev/null +++ b/src/Factory.hh @@ -0,0 +1,28 @@ +/* + * Factory.hh + * + * Created on: Dec 11, 2010 + * Author: lamikr + */ + +#ifndef FACTORY_HH_ +#define FACTORY_HH_ + +#include + +#include + +#include "DeviceConfig.hh" +#include "W1Device.hh" + +namespace w1 { + class Factory { + public: + Factory(); + virtual ~Factory(); + static W1Device *get_device(int family_code, std::string device_id, dirent *direntry_param); + static DeviceConfig *get_device_config(std::string device_id); + }; +} + +#endif /* FACTORY_HH_ */