Changeset 5246 in orxonox.OLD for trunk/src/lib/shell/shell_buffer.h
- Timestamp:
- Sep 24, 2005, 9:20:49 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_buffer.h
r5206 r5246 2 2 * @file shell_buffer.h 3 3 * @brief The Shell buffer Tasks 4 * @see debug.h 4 5 */ 5 6 … … 14 15 class Shell; 15 16 template<class T> class tList; 16 template<class T> class tIterator;17 17 #ifndef NULL 18 18 #define NULL 0 //!< a pointer to NULL 19 19 #endif 20 20 21 //! A class for ...21 //! A class handling output from orxonox via debug.h 22 22 class ShellBuffer { 23 23 … … 35 35 /** @param bufferSize the new Buffer-Size */ 36 36 void setBufferSize(unsigned int bufferSize) { this->bufferSize = bufferSize; }; 37 void flush Buffers();37 void flush(); 38 38 static bool addBufferLineStatic(const char* line, ...); 39 39 void addBufferLine(const char* line, va_list arg); 40 void moveBuffer(unsigned int lineCount); 41 // void moveBufferTo(unsigned int lineNumber); 42 const char* getBufferLine(unsigned int lineNumber); 43 /** @returns the Buffer Iterator, that enables externals to walk through the Buffer */ 44 inline tIterator<char>* getBufferIterator() const { return bufferIterator; }; 45 /** @returns the Count of lines processed by the Shell. */ 40 /** @returns the List of stings from the Buffer */ 41 const tList<char>* getBuffer() const { return this->buffer; }; 42 /** @returns the Count of lines processed by the Shell. */ 46 43 inline long getLineCount() const { return this->lineCount; }; 47 44 … … 51 48 ShellBuffer(); 52 49 53 54 50 private: 55 51 static ShellBuffer* singletonRef; //!< The singleton-reference to the only memeber of this class. 56 52 unsigned int bufferSize; //!< The Size of the buffer 57 53 tList<char>* buffer; //!< A list of stored char-arrays(strings) to store the history 58 tIterator<char>* bufferIterator; //!< An iterator for the Shells main buffer.59 54 60 55 Shell* shell; //!< the Registered Shell.
Note: See TracChangeset
for help on using the changeset viewer.