]> git.lizzy.rs Git - irrlicht.git/blob - source/Irrlicht/CLogger.h
Revert "Fix: Listbox was sometimes sending EGET_LISTBOX_SELECTED_AGAIN instead of...
[irrlicht.git] / source / Irrlicht / CLogger.h
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt\r
2 // This file is part of the "Irrlicht Engine".\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h\r
4 \r
5 #ifndef __C_LOGGER_H_INCLUDED__\r
6 #define __C_LOGGER_H_INCLUDED__\r
7 \r
8 #include "ILogger.h"\r
9 #include "os.h"\r
10 #include "irrString.h"\r
11 #include "IEventReceiver.h"\r
12 \r
13 namespace irr\r
14 {\r
15 \r
16 //! Class for logging messages, warnings and errors to stdout\r
17 class CLogger : public ILogger\r
18 {\r
19 public:\r
20 \r
21         CLogger(IEventReceiver* r);\r
22 \r
23         //! Returns the current set log level.\r
24         ELOG_LEVEL getLogLevel() const override;\r
25 \r
26         //! Sets a new log level.       void setLogLevel(ELOG_LEVEL ll) override;\r
27         void setLogLevel(ELOG_LEVEL ll) override;\r
28 \r
29         //! Prints out a text into the log\r
30         void log(const c8* text, ELOG_LEVEL ll=ELL_INFORMATION) override;\r
31 \r
32         //! Prints out a text into the log\r
33         void log(const wchar_t* text, ELOG_LEVEL ll=ELL_INFORMATION) override;\r
34 \r
35         //! Prints out a text into the log\r
36         void log(const c8* text, const c8* hint, ELOG_LEVEL ll=ELL_INFORMATION) override;\r
37 \r
38         //! Prints out a text into the log\r
39         void log(const c8* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION) override;\r
40 \r
41         //! Prints out a text into the log\r
42         void log(const wchar_t* text, const wchar_t* hint, ELOG_LEVEL ll=ELL_INFORMATION) override;\r
43 \r
44         //! Sets a new event receiver\r
45         void setReceiver(IEventReceiver* r);\r
46 \r
47 private:\r
48 \r
49         ELOG_LEVEL LogLevel;\r
50         IEventReceiver* Receiver;\r
51 };\r
52 \r
53 } // end namespace\r
54 \r
55 #endif\r
56 \r