- Timestamp:
- Aug 21, 2011, 4:04:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/util/output/ConsoleWriter.cc
r8799 r8848 27 27 */ 28 28 29 /** 30 @file 31 @brief Implementation of the ConsoleWriter singleton. 32 */ 33 29 34 #include "ConsoleWriter.h" 30 35 … … 35 40 namespace orxonox 36 41 { 42 /** 43 @brief Constructor, initializes the output level. 44 45 In debug builds, it writes output up to level::internal_warning to the 46 console, in release builds only up to level::user_info. 47 48 After creation, the instance is enabled. 49 */ 37 50 ConsoleWriter::ConsoleWriter() : BaseWriter("Console") 38 51 { … … 45 58 } 46 59 60 /** 61 @brief Destructor. 62 */ 47 63 ConsoleWriter::~ConsoleWriter() 48 64 { 49 65 } 50 66 67 /** 68 @brief Returns the only existing instance of this class. 69 */ 51 70 /*static*/ ConsoleWriter& ConsoleWriter::getInstance() 52 71 { … … 55 74 } 56 75 76 /** 77 @brief Inherited function from BaseWriter, writes output to the console using std::cout. 78 */ 57 79 void ConsoleWriter::printLine(const std::string& line, OutputLevel) 58 80 { … … 60 82 } 61 83 84 /** 85 @brief Enables the instance by registering itself as listener at OutputManager. 86 */ 62 87 void ConsoleWriter::enable() 63 88 { … … 69 94 } 70 95 96 /** 97 @brief Disables the instance by unregistering itself from OutputManager. 98 */ 71 99 void ConsoleWriter::disable() 72 100 {
Note: See TracChangeset
for help on using the changeset viewer.