diff options
Diffstat (limited to 'src/include/iofactory.h')
-rw-r--r-- | src/include/iofactory.h | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/src/include/iofactory.h b/src/include/iofactory.h index 6ebccaa..1a50e4e 100644 --- a/src/include/iofactory.h +++ b/src/include/iofactory.h @@ -6,11 +6,11 @@ * ----------------------------------------------------------------- **/ #ifndef IOFACTORY_H_INCLUDED #define IOFACTORY_H_INCLUDED +#include "iodevice.h" + #include <map> #include <string> -#include "iodevice.h" - namespace Binc { class IOFactory { public: @@ -23,31 +23,34 @@ namespace Binc { private: IOFactory(void); - + std::map<std::string, IODevice *> devices; }; } -#define bincClient \ - IOFactory::getClient() +#define bincClient IOFactory::getClient() -#if defined (DEBUG) -//#define bincError if (false) std::cout +#if defined(DEBUG) +// #define bincError if (false) std::cout #define bincError std::cerr // #define bincWarning if (false) std::cout #define bincWarning std::cerr -#define bincDebug std::cerr -//#define bincDebug if (false) std::cout +#define bincDebug std::cerr +// #define bincDebug if (false) std::cout #else -#define bincError \ - IOFactory::getLogger().setOutputLevel(IODevice::ErrorLevel);IOFactory::getLogger() -#define bincWarning \ - IOFactory::getLogger().setOutputLevel(IODevice::WarningLevel);IOFactory::getLogger() -#define bincDebug \ - IOFactory::getLogger().setOutputLevel(IODevice::DebugLevel);IOFactory::getLogger() +#define bincError \ + IOFactory::getLogger().setOutputLevel(IODevice::ErrorLevel); \ + IOFactory::getLogger() +#define bincWarning \ + IOFactory::getLogger().setOutputLevel(IODevice::WarningLevel); \ + IOFactory::getLogger() +#define bincDebug \ + IOFactory::getLogger().setOutputLevel(IODevice::DebugLevel); \ + IOFactory::getLogger() #endif -#define bincLog \ - IOFactory::getLogger().setOutputLevel(IODevice::InfoLevel);IOFactory::getLogger() +#define bincLog \ + IOFactory::getLogger().setOutputLevel(IODevice::InfoLevel); \ + IOFactory::getLogger() #endif |