~baltix/+junk/irrlicht-test

« back to all changes in this revision

Viewing changes to source/Irrlicht/CLogger.h

  • Committer: Mantas Kriaučiūnas
  • Date: 2011-07-18 13:06:25 UTC
  • Revision ID: mantas@akl.lt-20110718130625-c5pvifp61e7kj1ol
Included whole irrlicht SVN libraries to work around launchpad recipe issue with quilt, see https://answers.launchpad.net/launchpad/+question/165193

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (C) 2002-2011 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