Changeset 9550 for code/trunk/src/libraries/util/output/ConsoleWriter.h
- Timestamp:
- Mar 12, 2013, 11:13:03 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/testing (added) merged: 9015,9017,9020-9022,9025-9026,9047,9076-9078,9114-9115,9221-9226,9356,9473-9480,9524,9529-9531,9533-9545,9547-9549
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/util/output/ConsoleWriter.h
r8858 r9550 37 37 38 38 #include "util/UtilPrereqs.h" 39 40 #include <ostream> 41 39 42 #include "BaseWriter.h" 40 43 … … 44 47 @brief ConsoleWriter inherits from BaseWriter and writes output to the console. 45 48 46 This class can be seen as an equivalent to std::cout within the output 47 system. It is implemented as a singleton for static acces. 49 This class can be seen as an equivalent to std::cout within the output system. 48 50 */ 49 51 class _UtilExport ConsoleWriter : public BaseWriter 50 52 { 51 53 public: 52 static ConsoleWriter& getInstance(); 54 ConsoleWriter(std::ostream& outputStream); 55 ConsoleWriter(const ConsoleWriter&); 56 virtual ~ConsoleWriter(); 53 57 54 58 void enable(); 55 59 void disable(); 60 61 inline const std::ostream& getOutputStream() const 62 { return this->outputStream_; } 56 63 57 64 protected: … … 59 66 60 67 private: 61 ConsoleWriter(); 62 ConsoleWriter(const ConsoleWriter&); 63 virtual ~ConsoleWriter(); 64 65 bool bEnabled_; ///< If false, the instance will not write output to the console. 68 std::ostream& outputStream_; ///< The ostream to which the console writer writes its output 69 bool bEnabled_; ///< If false, the instance will not write output to the console. 66 70 }; 67 71 }
Note: See TracChangeset
for help on using the changeset viewer.