1:
2:
3: /*************
4: * *
5: * SENTINEL *
6: * *
7: *************/
8:
9:
10: #ifndef WWWI_MIND_LOGHANDLE_H
11: #define WWWI_MIND_LOGHANDLE_H
12:
13:
14: /**********************
15: * *
16: * COMPILER INCLUDES *
17: * *
18: **********************/
19:
20:
21: #include <sstream>
22:
23:
24: /*********************
25: * *
26: * PROJECT INCLUDES *
27: * *
28: *********************/
29:
30:
31: #include "mindlog.h"
32:
33:
34: using std::stringstream;
35:
36:
37: /********************
38: * *
39: * CLASS LOGHANDLE *
40: * *
41: ********************/
42:
43:
44: class LogHandle : public stringstream {
45: public:
46: LogHandle(LogFacility i_lf, LogPriority i_lp);
47: void operator()(void);
48: LogHandle &operator<<(LogPriority i_lf);
49: void Flush(void);
50: ~LogHandle(void);
51:
52: protected:
53: LogFacility m_lf;
54: LogPriority m_ly;
55: LogPriority m_lyBase;
56: };
57:
58:
59: /************
60: * *
61: * THE END *
62: * *
63: ************/
64:
65:
66: #endif
67:
68:
69: