source: GTP/trunk/Lib/Vis/Preprocessing/src/LogManager.h @ 1001

Revision 1001, 812 bytes checked in by mattausch, 18 years ago (diff)

added mesh instance support
improved support for occlusion queries + other extensions

Line 
1#ifndef _LogManager_H__
2#define _LogManager_H__
3
4#include <vector>
5#include <fstream>
6#include <iostream>
7
8#include "Containers.h"
9
10
11namespace GtpVisibilityPreprocessor {
12
13
14/** Log manager controlling the debug output.
15        This class defines the pattern of singleton to assure that
16        there is always only one log manager.
17*/
18class LogManager {
19
20public:
21
22        /** Returns the resource manager as a singleton.
23        */
24        static LogManager *GetSingleton();
25
26
27protected:
28
29        /** Default constructor. The constructor is protected
30                to have control over instantiation using the
31                singleton pattern.
32        */
33        LogManager();
34
35        ~LogManager();
36 
37        void LogMessage(const std::string &str);
38
39protected:
40
41        std::ofstream mOutStream;
42
43private:
44
45        static LogManager *sLogManager;
46       
47};
48
49
50}
51
52#endif
Note: See TracBrowser for help on using the repository browser.