Changeset 890 for trunk/src/SDLog.cc
- Timestamp:
- 03/08/06 13:32:27 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/SDLog.cc
r883 r890 3 3 using namespace asap; 4 4 5 std::string SDLog::log_ = std::string("");5 std::string Logger::log_ = std::string(""); 6 6 7 SDLog::SDLog()7 Logger::Logger() 8 8 { 9 9 enableLog(); 10 10 } 11 11 12 SDLog::SDLog(bool enabled)12 Logger::Logger(bool enabled) 13 13 { 14 14 enabled_ = enabled; 15 15 } 16 16 17 void SDLog::pushLog(const std::string& s, bool newline ) const17 void Logger::pushLog(const std::string& s, bool newline ) const 18 18 { 19 19 if (enabled_) { … … 22 22 }; 23 23 } 24 std::string SDLog::popLog() const24 std::string Logger::popLog() const 25 25 { 26 26 std::string out; … … 28 28 return out; 29 29 } 30 void SDLog::enableLog()30 void Logger::enableLog() 31 31 { 32 32 enabled_ = true; 33 33 } 34 void SDLog::disableLog()34 void Logger::disableLog() 35 35 { 36 36 enabled_ = false;
Note: See TracChangeset
for help on using the changeset viewer.