|
a/src/bincimapmime/iofactory.h |
|
b/src/bincimapmime/iofactory.h |
|
... |
|
... |
26 |
#ifndef IOFACTORY_H_INCLUDED
|
26 |
#ifndef IOFACTORY_H_INCLUDED
|
27 |
#define IOFACTORY_H_INCLUDED
|
27 |
#define IOFACTORY_H_INCLUDED
|
28 |
#include <map>
|
28 |
#include <map>
|
29 |
#include <string>
|
29 |
#include <string>
|
30 |
|
30 |
|
|
|
31 |
#include "iodevice.h"
|
|
|
32 |
|
31 |
namespace Binc {
|
33 |
namespace Binc {
|
32 |
class IODevice;
|
|
|
33 |
class IOFactory {
|
34 |
class IOFactory {
|
34 |
public:
|
35 |
public:
|
35 |
~IOFactory(void);
|
36 |
~IOFactory(void);
|
36 |
|
37 |
|
37 |
static void addDevice(IODevice *dev);
|
38 |
static void addDevice(IODevice *dev);
|
|
... |
|
... |
53 |
#define bincError if (false) std::cout
|
54 |
#define bincError if (false) std::cout
|
54 |
#define bincWarning if (false) std::cout
|
55 |
#define bincWarning if (false) std::cout
|
55 |
#define bincDebug if (false) std::cout
|
56 |
#define bincDebug if (false) std::cout
|
56 |
#else
|
57 |
#else
|
57 |
#define bincError \
|
58 |
#define bincError \
|
58 |
IOFactory::getLogger().setOutputLevel(0);IOFactory::getLogger()
|
59 |
IOFactory::getLogger().setOutputLevel(IODevice::ErrorLevel);IOFactory::getLogger()
|
59 |
#define bincWarning \
|
60 |
#define bincWarning \
|
60 |
IOFactory::getLogger().setOutputLevel(2);IOFactory::getLogger()
|
61 |
IOFactory::getLogger().setOutputLevel(IODevice::WarningLevel);IOFactory::getLogger()
|
61 |
#define bincDebug \
|
62 |
#define bincDebug \
|
62 |
IOFactory::getLogger().setOutputLevel(3);IOFactory::getLogger()
|
63 |
IOFactory::getLogger().setOutputLevel(IODevice::DebugLevel);IOFactory::getLogger()
|
63 |
#endif
|
64 |
#endif
|
64 |
|
65 |
|
65 |
#define bincInfo \
|
66 |
#define bincInfo \
|
66 |
IOFactory::getLogger().setOutputLevel(1);IOFactory::getLogger()
|
67 |
IOFactory::getLogger().setOutputLevel(IODevice::InfoLevel);IOFactory::getLogger()
|
67 |
|
68 |
|
68 |
#endif
|
69 |
#endif
|