source: GTP/trunk/Lib/Vis/OnlineCullingCHC/src/CullingLogManager.cpp @ 2280

Revision 2280, 620 bytes checked in by mattausch, 17 years ago (diff)

removed dependency on ogre in gtpvisibility

Line 
1#include "CullingLogManager.h"
2
3
4using namespace std;
5
6
7namespace GtpVisibility {
8
9CullingLogManager *CullingLogManager::sLogManager = NULL;
10
11
12CullingLogManager::CullingLogManager()
13{
14        mOutStream.open("culling.log");
15}
16
17
18CullingLogManager *CullingLogManager::GetSingleton()
19{
20        if (!sLogManager)
21        {
22                sLogManager = new CullingLogManager();
23        }
24
25        return sLogManager;
26}
27
28
29void CullingLogManager::DelSingleton()
30{
31        if (sLogManager)
32        {
33                delete sLogManager;
34                sLogManager = NULL;
35        }
36}
37
38
39void CullingLogManager::LogMessage(const string &str)
40{
41        mOutStream << str.c_str() << endl;
42}
43
44}
Note: See TracBrowser for help on using the repository browser.