Changeset 1586 for code/branches/core3/src/util/OutputBuffer.h
- Timestamp:
- Jun 10, 2008, 3:35:50 PM (17 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/util/OutputBuffer.h
r1574 r1586 34 34 #include <iostream> 35 35 36 #include " CorePrereqs.h"36 #include "UtilPrereqs.h" 37 37 38 38 namespace orxonox 39 39 { 40 class _ CoreExport OutputBufferListener40 class _UtilExport OutputBufferListener 41 41 { 42 42 friend class OutputBuffer; … … 49 49 }; 50 50 51 class _ CoreExport OutputBuffer51 class _UtilExport OutputBuffer 52 52 { 53 53 public: … … 59 59 { 60 60 this->stream_ << object; 61 this->callListeners(); 62 return *this; 63 } 64 65 template <const OutputBuffer&> 66 inline OutputBuffer& operator<<(const OutputBuffer& object) 67 { 68 this->stream_ << object.stream_; 61 69 this->callListeners(); 62 70 return *this; … … 97 105 void unregisterListener(OutputBufferListener* listener); 98 106 107 inline std::stringstream& getStream() 108 { return this->stream_; } 109 99 110 private: 100 111 void callListeners();
Note: See TracChangeset
for help on using the changeset viewer.