Changeset 5175 in orxonox.OLD for trunk/src/lib/shell/shell_buffer.h
- Timestamp:
- Sep 11, 2005, 11:21:56 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_buffer.h
r5174 r5175 14 14 template<class T> class tList; 15 15 template<class T> class tIterator; 16 #ifndef NULL 17 #define NULL 0 //!< a pointer to NULL 18 #endif 16 19 17 20 //! A class for ... … … 22 25 /** @returns a Pointer to the only object of this Class */ 23 26 inline static ShellBuffer* getInstance() { if (!ShellBuffer::singletonRef) ShellBuffer::singletonRef = new ShellBuffer(); return ShellBuffer::singletonRef; }; 27 /** @returns true if this class is instanciated, false otherwise */ 28 inline static bool isInstanciated() { return (ShellBuffer::singletonRef == NULL)?true:false; }; 24 29 25 30 // BUFFER // … … 30 35 void addBufferLine(const char* line, va_list arg); 31 36 void moveBuffer(unsigned int lineCount); 32 // 37 // void moveBufferTo(unsigned int lineNumber); 33 38 const char* getBufferLine(unsigned int lineNumber); 39 inline tIterator<char>* getBufferIterator() const { return bufferIterator; }; 34 40 35 41 private:
Note: See TracChangeset
for help on using the changeset viewer.