Changeset 7762 in orxonox.OLD for trunk/src/lib/shell/shell_buffer.h
- Timestamp:
- May 22, 2006, 6:20:35 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_buffer.h
r7761 r7762 16 16 namespace OrxShell 17 17 { 18 // FORWARD DECLARATION19 class Shell;20 21 18 //! A class handling output from orxonox via debug.h 22 19 /** … … 35 32 inline static bool isInstanciated() { return (ShellBuffer::singletonRef == NULL)?false:true; }; 36 33 37 void registerShell(Shell* shell);38 void unregisterShell(Shell* shell);39 40 34 static bool addBufferLineStatic(const char* line, ...); 41 35 void addBufferLine(const char* line, va_list arg); 42 36 43 // BUFFER //37 /// BUFFER 44 38 /** @param bufferSize the new Buffer-Size */ 45 void set BufferSize(unsigned int bufferSize) { this->bufferSize = bufferSize; };39 void setMaxBufferSize(unsigned int maxBufferSize) { this->maxBufferSize = maxBufferSize; }; 46 40 void flush(); 47 41 … … 50 44 /** @returns the Count of lines processed by the Shell. */ 51 45 inline unsigned long getLineCount() const { return this->lineCount; }; 46 /** @returns the Current Buffer Size. */ 47 inline unsigned int getBufferSize() const { return this->buffer.size(); }; 52 48 53 49 void debug() const; … … 58 54 private: 59 55 static ShellBuffer* singletonRef; //!< The singleton-reference to the only memeber of this class. 60 unsigned int bufferSize; //!< The Size of the buffer56 unsigned int maxBufferSize; //!< The Size of the buffer 61 57 62 Shell* shell; //!< the Registered Shell.63 58 char bufferArray[SHELL_BUFFER_SIZE]; //!< a BUFFER for fast writing 64 59 std::string keepBuffer; //!< a BUFFER to have multi-non-newLine commands be copied into the shell.
Note: See TracChangeset
for help on using the changeset viewer.