Changeset 1322 for code/branches/console/src/core/OutputBuffer.cc
- Timestamp:
- May 19, 2008, 2:33:09 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/OutputBuffer.cc
r1313 r1322 49 49 } 50 50 51 OutputBuffer& OutputBuffer::operator<<(std::ostream& (*manipulator)(std::ostream&)) 52 { 53 this->stream_ << manipulator; 54 this->callListeners(); 55 return *this; 56 } 57 58 OutputBuffer& OutputBuffer::operator<<(std::ios& (*manipulator)(std::ios&)) 59 { 60 this->stream_ << manipulator; 61 this->callListeners(); 62 return *this; 63 } 64 65 OutputBuffer& OutputBuffer::operator<<(std::ios_base& (*manipulator)(std::ios_base&)) 66 { 67 this->stream_ << manipulator; 68 this->callListeners(); 69 return *this; 70 } 71 51 72 bool OutputBuffer::getLine(std::string* output) 52 73 { … … 59 80 60 81 if (eof) 82 { 61 83 this->stream_.flush(); 84 this->stream_.clear(); 85 } 62 86 63 // Return true if this was a whole new line, ended by \n64 87 return (!eof); 65 88 }
Note: See TracChangeset
for help on using the changeset viewer.