Changeset 5176 in orxonox.OLD for trunk/src/lib/shell/shell_buffer.h
- Timestamp:
- Sep 12, 2005, 12:18:25 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_buffer.h
r5175 r5176 26 26 inline static ShellBuffer* getInstance() { if (!ShellBuffer::singletonRef) ShellBuffer::singletonRef = new ShellBuffer(); return ShellBuffer::singletonRef; }; 27 27 /** @returns true if this class is instanciated, false otherwise */ 28 inline static bool isInstanciated() { return (ShellBuffer::singletonRef == NULL)? true:false; };28 inline static bool isInstanciated() { return (ShellBuffer::singletonRef == NULL)?false:true; }; 29 29 30 30 // BUFFER // … … 37 37 // void moveBufferTo(unsigned int lineNumber); 38 38 const char* getBufferLine(unsigned int lineNumber); 39 inline tIterator<char>* getBufferIterator() const { return bufferIterator; }; 39 /** @returns the Buffer Iterator, that enables externals to walk through the Buffer */ 40 inline tIterator<char>* getBufferIterator() const { return bufferIterator; }; 41 /** @returns the Count of lines processed by the Shell. 42 inline long getLineCount() const { return this->lineCount; }; 40 43 41 44 private:
Note: See TracChangeset
for help on using the changeset viewer.