|
Last change
on this file since 1047 was 1030, checked in by mar637, 20 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 |
|
|---|
| 7 | namespace asap {
|
|---|
| 8 |
|
|---|
| 9 | class Logger {
|
|---|
| 10 | public:
|
|---|
| 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();
|
|---|
| 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.