~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/contrib/NassiShneiderman/logger.cpp

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "logger.h"
 
2
#include <manager.h>
 
3
#include <logmanager.h>
 
4
 
 
5
 
 
6
void LoggerSingleton::Log(wxString str)
 
7
{
 
8
    Manager::Get()->GetLogManager()->Log(str);
 
9
}
 
10
LoggerSingleton* LoggerSingleton::instanz = 0;
 
11
 
 
12
LoggerSingleton* LoggerSingleton::exemplar()
 
13
{
 
14
  static Waechter w;
 
15
  if( instanz == 0 )
 
16
    instanz = new LoggerSingleton();
 
17
  return instanz;
 
18
}
 
19
 
 
20