diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-07 22:33:50 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-08 11:35:51 +0200 |
commit | 1978c49bea5b439d993067c055cec47e70db8fd6 (patch) | |
tree | 255caea96a13f95564e6b631be9a4ac55ce33cd9 /src/iofactory.cc | |
parent | 3b1278f5459514a6d6364f068ff97b8a0432057b (diff) |
minor refactoring
Diffstat (limited to 'src/iofactory.cc')
-rw-r--r-- | src/iofactory.cc | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/iofactory.cc b/src/iofactory.cc index abe71b4..e58efdb 100644 --- a/src/iofactory.cc +++ b/src/iofactory.cc @@ -1,30 +1,26 @@ -/* -------------------------------------------------------------------- - * @file iofactory.cc - * @brief Implementation of the IOFactory class. - * @author Andreas Aardal Hanssen - * @date 2002, 2003 - * ----------------------------------------------------------------- **/ +/** + * @file iofactory.cc + * @brief Implementation of the IOFactory class. + * @author Andreas Aardal Hanssen + * @date 2002, 2003 + */ + #include "iofactory.h" #include "iodevice.h" -using namespace ::Binc; -using namespace ::std; +using namespace Binc; -//------------------------------------------------------------------------ IOFactory::IOFactory(void) {} -//------------------------------------------------------------------------ IOFactory::~IOFactory(void) {} -//------------------------------------------------------------------------ IOFactory &IOFactory::getInstance(void) { static IOFactory ioFactory; return ioFactory; } -//------------------------------------------------------------------------ void IOFactory::addDevice(IODevice *dev) { IODevice *ioDevice = IOFactory::getInstance().devices[dev->service()]; @@ -36,7 +32,6 @@ void IOFactory::addDevice(IODevice *dev) IOFactory::getInstance().devices[dev->service()] = dev; } -//------------------------------------------------------------------------ IODevice &IOFactory::getClient(void) { static IODevice nulDevice; @@ -48,7 +43,6 @@ IODevice &IOFactory::getClient(void) return nulDevice; } -//------------------------------------------------------------------------ IODevice &IOFactory::getLogger(void) { static IODevice nulDevice; |