Changeset 7737 in orxonox.OLD for trunk/src/lib/shell/shell_buffer.h
- Timestamp:
- May 19, 2006, 11:38:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_buffer.h
r7661 r7737 8 8 #define _SHELL_BUFFER_H 9 9 10 #include <stdarg.h>11 10 #include <list> 12 #include "lib/util/threading.h"13 11 14 12 #define SHELL_BUFFER_SIZE 16384 //!< The Size of the input-buffers (should be large enough to carry any kind of input) … … 50 48 51 49 private: 52 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<std::string> buffer; //!< A list of stored char-arrays(strings) to store the history 50 static ShellBuffer* singletonRef; //!< The singleton-reference to the only memeber of this class. 51 unsigned int bufferSize; //!< The Size of the buffer 55 52 56 Shell* shell; //!< the Registered Shell.57 char bufferArray[SHELL_BUFFER_SIZE]; //!< a BUFFER for fast writing58 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.53 Shell* shell; //!< the Registered Shell. 54 char bufferArray[SHELL_BUFFER_SIZE]; //!< a BUFFER for fast writing 55 char keepBufferArray[SHELL_BUFFER_SIZE]; //!< a BUFFER to have multi-non-newLine commands be copied into the shell. 56 bool keepBuffer; //!< if the keepbuffer contains unfinished lines. 60 57 61 unsigned long lineCount; //!< how many Lines have been written out so far.58 unsigned long lineCount; //!< how many Lines have been written out so far. 62 59 63 static SDL_mutex* bufferMutex; //!< Only one thread may write into the ShellBuffer at a time.60 static std::list<std::string> buffer; //!< A list of stored char-arrays(strings) to store the history 64 61 }; 65 62
Note: See TracChangeset
for help on using the changeset viewer.