Last change
on this file since 1061 was 1030, checked in by mar637, 18 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
|
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.