From 1978c49bea5b439d993067c055cec47e70db8fd6 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sat, 7 Oct 2023 22:33:50 +0200 Subject: minor refactoring --- src/iofactory.cc | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'src/iofactory.cc') 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; -- cgit v1.2.3