source: branches/Release2.0/src/Logger.h@ 1712

Last change on this file since 1712 was 1030, checked in by mar637, 19 years ago

Various fixes to make >=gcc-3.4 compliant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 422 bytes
Line 
1#ifndef SDLOG_H
2#define SDLOG_H
3
4#include <string>
5#include <iostream>
6
7namespace asap {
8
9class Logger {
10public:
11 Logger();
12 virtual ~Logger();
13 Logger(bool enabled);
14 void pushLog(const std::string& s, bool newline=true) const;
15 //void pushLog(const char* cs);
16 std::string popLog() const;
17 virtual void enableLog();
18 virtual void disableLog();
19private:
20 static std::string log_;
21 bool enabled_;
22};
23
24}
25
26#endif
27
Note: See TracBrowser for help on using the repository browser.