Last change
on this file since 1028 was 891, checked in by mar637, 19 years ago |
asap2 naming changes
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
401 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();
|
---|
| 12 | Logger(bool enabled);
|
---|
[883] | 13 | void pushLog(const std::string& s, bool newline=true) const;
|
---|
[717] | 14 | //void pushLog(const char* cs);
|
---|
| 15 | std::string popLog() const;
|
---|
| 16 | virtual void enableLog();
|
---|
| 17 | virtual void disableLog();
|
---|
| 18 | private:
|
---|
| 19 | static std::string log_;
|
---|
| 20 | bool enabled_;
|
---|
| 21 | };
|
---|
| 22 |
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | #endif
|
---|
| 26 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.