Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5175 in orxonox.OLD for trunk/src/lib/shell/shell_buffer.h


Ignore:
Timestamp:
Sep 11, 2005, 11:21:56 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: cleaner outtakes of the ShellBuffer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_buffer.h

    r5174 r5175  
    1414template<class T> class tList;
    1515template<class T> class tIterator;
     16#ifndef NULL
     17#define NULL 0            //!< a pointer to NULL
     18#endif
    1619
    1720//! A class for ...
     
    2225  /** @returns a Pointer to the only object of this Class */
    2326  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; };
    2429
    2530  // BUFFER //
     
    3035  void addBufferLine(const char* line, va_list arg);
    3136  void moveBuffer(unsigned int lineCount);
    32 //    void moveBufferTo(unsigned int lineNumber);
     37// void moveBufferTo(unsigned int lineNumber);
    3338  const char* getBufferLine(unsigned int lineNumber);
     39  inline tIterator<char>*  getBufferIterator() const { return bufferIterator; };
    3440
    3541  private:
Note: See TracChangeset for help on using the changeset viewer.