source: trunk/src/Logger.h@ 1056

Last change on this file since 1056 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
RevLine 
[717]1#ifndef SDLOG_H
2#define SDLOG_H
3
4#include <string>
5#include <iostream>
6
7namespace asap {
8
[890]9class Logger {
[717]10public:
[890]11 Logger();
[1030]12 virtual ~Logger();
[890]13 Logger(bool enabled);
[883]14 void pushLog(const std::string& s, bool newline=true) const;
[717]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.