source: GTP/trunk/Lib/Vis/OnlineCullingCHC/include/CullingLogManager.h @ 2280

Revision 2280, 838 bytes checked in by mattausch, 18 years ago (diff)

removed dependency on ogre in gtpvisibility

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