Changeset 5781 in orxonox.OLD for trunk/src/lib/shell/shell_buffer.h
- Timestamp:
- Nov 26, 2005, 4:17:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_buffer.h
r5246 r5781 9 9 10 10 #include <stdarg.h> 11 #include <list> 11 12 12 13 #define SHELL_BUFFER_SIZE 16384 //!< The Size of the input-buffers (should be large enough to carry any kind of input) … … 39 40 void addBufferLine(const char* line, va_list arg); 40 41 /** @returns the List of stings from the Buffer */ 41 const tList<char>* getBuffer() const { returnthis->buffer; };42 const std::list<char*>* getBuffer() const { return &this->buffer; }; 42 43 /** @returns the Count of lines processed by the Shell. */ 43 44 inline long getLineCount() const { return this->lineCount; }; … … 49 50 50 51 private: 51 static ShellBuffer* singletonRef; //!< The singleton-reference to the only memeber of this class.52 unsigned int bufferSize; //!< The Size of the buffer53 tList<char>*buffer; //!< A list of stored char-arrays(strings) to store the history52 static ShellBuffer* singletonRef; //!< The singleton-reference to the only memeber of this class. 53 unsigned int bufferSize; //!< The Size of the buffer 54 std::list<char*> buffer; //!< A list of stored char-arrays(strings) to store the history 54 55 55 Shell* shell; //!< the Registered Shell.56 char bufferArray[SHELL_BUFFER_SIZE]; //!< a BUFFER for fast writing57 char keepBufferArray[SHELL_BUFFER_SIZE]; //!< a BUFFER to have multi-non-newLine commands be copied into the shell.58 bool keepBuffer; //!< if the keepbuffer contains unfinished lines.56 Shell* shell; //!< the Registered Shell. 57 char bufferArray[SHELL_BUFFER_SIZE]; //!< a BUFFER for fast writing 58 char keepBufferArray[SHELL_BUFFER_SIZE]; //!< a BUFFER to have multi-non-newLine commands be copied into the shell. 59 bool keepBuffer; //!< if the keepbuffer contains unfinished lines. 59 60 60 unsigned long lineCount; //!< how many Lines have been written out so far.61 unsigned long lineCount; //!< how many Lines have been written out so far. 61 62 }; 62 63
Note: See TracChangeset
for help on using the changeset viewer.