diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CLogger.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CLogger.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CLogger.h b/libraries/irrlicht-1.8/source/Irrlicht/CLogger.h new file mode 100644 index 0000000..314cb13 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/CLogger.h | |||
@@ -0,0 +1,56 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | ||
2 | // This file is part of the "Irrlicht Engine". | ||
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | ||
4 | |||
5 | #ifndef __C_LOGGER_H_INCLUDED__ | ||
6 | #define __C_LOGGER_H_INCLUDED__ | ||
7 | |||
8 | #include "ILogger.h" | ||
9 | #include "os.h" | ||
10 | #include "irrString.h" | ||
11 | #include "IEventReceiver.h" | ||
12 | |||
13 | namespace irr | ||
14 | { | ||
15 | |||
16 | //! Class for logging messages, warnings and errors to stdout | ||
17 | class CLogger : public ILogger | ||
18 | { | ||
19 | public: | ||
20 | |||
21 | CLogger(IEventReceiver* r); | ||
22 | |||
23 | //! Returns the current set log level. | ||
24 | virtual ELOG_LEVEL getLogLevel() const; | ||
25 | |||
26 | //! Sets a new log level. virtual void setLogLevel(ELOG_LEVEL ll); | ||
27 | virtual void setLogLevel(ELOG_LEVEL ll); | ||
28 | |||
29 | //! Prints out a text into the log | ||
30 | virtual void log(const c8* text, ELOG_LEVEL ll=ELL_INFORMATION); | ||
31 | |||
32 | //! Prints out a text into the log | ||
33 | virtual void log(const wchar_t* text, ELOG_LEVEL ll=ELL_INFORMATION); | ||
34 | |||
35 | //! Prints out a text into the log | ||
36 | virtual void log(const c8* text, const c8* hint, ELOG_LEVEL ll=ELL_INFORMATION); | ||
37 | |||
38 | //! Prints out a text into the log | ||
39 | virtual void log(const c8* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION); | ||
40 | |||
41 | //! Prints out a text into the log | ||
42 | virtual void log(const wchar_t* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION); | ||
43 | |||
44 | //! Sets a new event receiver | ||
45 | void setReceiver(IEventReceiver* r); | ||
46 | |||
47 | private: | ||
48 | |||
49 | ELOG_LEVEL LogLevel; | ||
50 | IEventReceiver* Receiver; | ||
51 | }; | ||
52 | |||
53 | } // end namespace | ||
54 | |||
55 | #endif | ||
56 | |||