- Timestamp:
- 08/02/06 13:16:16 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Logger.h
r1030 r1102 1 #ifndef SDLOG_H2 #define SDLOG_H1 #ifndef ASAPLOGGER_H 2 #define ASAPLOGGER_H 3 3 4 4 #include <string> … … 6 6 7 7 namespace asap { 8 8 /** 9 * This class provides the logging within asap. All other classes which need to log 10 * should inherit from this. 11 * @brief The ASAP logging class 12 * @author Malte Marquarding 13 * @date $Date$ 14 * @version 15 */ 9 16 class Logger { 10 17 public: 18 /** 19 * Default Constructor 20 **/ 11 21 Logger(); 22 23 /** 24 * Constructor with switch to enable/disable logging 25 * @param[in] enabled indicating the deafult state 26 */ 27 Logger(bool enabled); 28 29 /* 30 * Destructor 31 */ 12 32 virtual ~Logger(); 13 Logger(bool enabled); 33 /** 34 * push another message into the logger 35 * @param[in] the message 36 * @param[in] whether to add a newline character at the end 37 */ 14 38 void pushLog(const std::string& s, bool newline=true) const; 15 //void pushLog(const char* cs); 39 /** 40 * pop the message form the logger 41 * @returns the log message string 42 */ 16 43 std::string popLog() const; 44 /** 45 * enable logging 46 */ 17 47 virtual void enableLog(); 48 /** 49 * disable logging 50 */ 18 51 virtual void disableLog(); 52 19 53 private: 20 54 static std::string log_; … … 22 56 }; 23 57 24 } 58 } // namespace 25 59 26 60 #endif
Note:
See TracChangeset
for help on using the changeset viewer.