Changeset 5991 for code/branches/console/src/libraries/util/OutputHandler.h
- Timestamp:
- Oct 24, 2009, 11:35:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/libraries/util/OutputHandler.h
r5983 r5991 48 48 namespace orxonox 49 49 { 50 namespace OutputLevel 51 { 52 enum Value 53 { 54 None = 0, 55 Error = 1, 56 Warning = 2, 57 Info = 3, 58 Debug = 4, 59 Verbose = 5, 60 Ultra = 6, 61 }; 62 } 63 50 64 //! The OutputHandler acts like std::cout, but redirects output to the console, the logfile and the ingame shell. 51 65 class _UtilExport OutputHandler … … 61 75 62 76 static OutputHandler& getOutStream(); 77 static inline OutputHandler& getOutStream(int level) 78 { return OutputHandler::getOutStream().setOutputLevel(level); } 63 79 64 80 /** @brief Puts some text on the outstream. @param text The text */ … … 142 158 OutputHandler& operator<<(std::ios& (*manipulator)(std::ios&)); 143 159 OutputHandler& operator<<(std::ios_base& (*manipulator)(std::ios_base&)); 160 161 /** @brief Dummy operator required by Debug.h for the ternary operator */ 162 inline operator int() { return 0; } 144 163 145 164 private:
Note: See TracChangeset
for help on using the changeset viewer.