summaryrefslogtreecommitdiff
path: root/src/include/iofactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/iofactory.h')
-rw-r--r--src/include/iofactory.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/include/iofactory.h b/src/include/iofactory.h
index 24dfe9f..e19688a 100644
--- a/src/include/iofactory.h
+++ b/src/include/iofactory.h
@@ -11,22 +11,18 @@
#include "iodevice.h"
#include <map>
+#include <memory>
#include <string>
namespace Binc {
class IOFactory {
- public:
- ~IOFactory();
+ std::map<std::string, std::unique_ptr<IODevice>> devices;
- static void addDevice(IODevice *dev);
+ public:
+ static void addDevice(std::unique_ptr<IODevice> dev);
static IOFactory &getInstance();
static IODevice &getClient();
static IODevice &getLogger();
-
- private:
- IOFactory();
-
- std::map<std::string, IODevice *> devices;
};
}