source:
trunk/src/Logger.h
@
1084
Last change on this file since 1084 was 1030, checked in by , 18 years ago | |
---|---|
|
|
File size: 422 bytes |
Rev | Line | |
---|---|---|
[717] | 1 | #ifndef SDLOG_H |
2 | #define SDLOG_H | |
3 | ||
4 | #include <string> | |
5 | #include <iostream> | |
6 | ||
7 | namespace asap { | |
8 | ||
[890] | 9 | class Logger { |
[717] | 10 | public: |
[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(); | |
19 | private: | |
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.