- Timestamp:
- Mar 4, 2013, 11:23:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/testing/src/libraries/util/output/ConsoleWriter.h
r9536 r9537 37 37 38 38 #include "util/UtilPrereqs.h" 39 40 #include <ostream> 41 39 42 #include "BaseWriter.h" 40 43 … … 50 53 { 51 54 public: 52 ConsoleWriter( );55 ConsoleWriter(std::ostream& outputStream); 53 56 ConsoleWriter(const ConsoleWriter&); 54 57 virtual ~ConsoleWriter(); … … 57 60 void disable(); 58 61 62 inline const std::ostream& getOutputStream() const 63 { return this->outputStream_; } 64 59 65 protected: 60 66 virtual void printLine(const std::string& line, OutputLevel level); 61 67 62 68 private: 63 bool bEnabled_; ///< If false, the instance will not write output to the console. 69 std::ostream& outputStream_; ///< The ostream to which the console writer writes its output 70 bool bEnabled_; ///< If false, the instance will not write output to the console. 64 71 }; 65 72 }
Note: See TracChangeset
for help on using the changeset viewer.