Changeset 1791 for code/trunk/src/util/OutputBuffer.cc
- Timestamp:
- Sep 16, 2008, 3:46:25 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/util/OutputBuffer.cc
r1784 r1791 27 27 */ 28 28 29 /** 30 @file OutputBuffer.cc 31 @brief Implementation of the OutputBuffer. 32 */ 33 29 34 #include "OutputBuffer.h" 30 31 35 32 36 namespace orxonox 33 37 { 34 const int OUTPUTBUFFER_MAX_LINE_LENGTH = 16384; 38 const int OUTPUTBUFFER_MAX_LINE_LENGTH = 16384; //! The maximal number of lines that can be stored within the OutputBuffer. 35 39 40 /** 41 @brief Adds a new listener to the list. 42 @param listener The new listener 43 */ 36 44 void OutputBuffer::registerListener(OutputBufferListener* listener) 37 45 { … … 39 47 } 40 48 49 /** 50 @brief Removes a listener from the list. 51 @param listener The listener 52 */ 41 53 void OutputBuffer::unregisterListener(OutputBufferListener* listener) 42 54 { … … 50 62 } 51 63 64 /** 65 @brief Puts a stream manipulator to the stream. 66 @param manipulator The manipulator 67 */ 52 68 OutputBuffer& OutputBuffer::operator<<(std::ostream& (*manipulator)(std::ostream&)) 53 69 { … … 57 73 } 58 74 75 /** 76 @brief Puts a stream manipulator to the stream. 77 @param manipulator The manipulator 78 */ 59 79 OutputBuffer& OutputBuffer::operator<<(std::ios& (*manipulator)(std::ios&)) 60 80 { … … 64 84 } 65 85 86 /** 87 @brief Puts a stream manipulator to the stream. 88 @param manipulator The manipulator 89 */ 66 90 OutputBuffer& OutputBuffer::operator<<(std::ios_base& (*manipulator)(std::ios_base&)) 67 91 { … … 71 95 } 72 96 97 /** 98 @brief Removes the first line from the stream and assigns it to a given string object. 99 @param output The string object to assign the first line 100 @return True if there was at least one line in the stream and this line was successfully assigned 101 102 It's important to know the returned line will be removed from the stream. If there are more than one 103 listener, they have to cooperate to avoid conflicts. 104 */ 73 105 bool OutputBuffer::getLine(std::string* output) 74 106 { … … 90 122 } 91 123 124 /** 125 @brief Calls the outputChanged() function of all registered listeners. 126 */ 92 127 void OutputBuffer::callListeners() 93 128 {
Note: See TracChangeset
for help on using the changeset viewer.