Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Sep 24, 2005, 9:20:49 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: minimalized the ShellBuffer

File:
1 edited

Legend:

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

    r5206 r5246  
    22 * @file shell_buffer.h
    33 * @brief The Shell buffer Tasks
     4 * @see debug.h
    45*/
    56
     
    1415class Shell;
    1516template<class T> class tList;
    16 template<class T> class tIterator;
    1717#ifndef NULL
    1818#define NULL 0            //!< a pointer to NULL
    1919#endif
    2020
    21 //! A class for ...
     21//! A class handling output from orxonox via debug.h
    2222class ShellBuffer {
    2323
     
    3535  /** @param bufferSize the new Buffer-Size */
    3636  void setBufferSize(unsigned int bufferSize) { this->bufferSize = bufferSize; };
    37   void flushBuffers();
     37  void flush();
    3838  static bool addBufferLineStatic(const char* line, ...);
    3939  void addBufferLine(const char* line, va_list arg);
    40   void moveBuffer(unsigned int lineCount);
    41 // void moveBufferTo(unsigned int lineNumber);
    42   const char* getBufferLine(unsigned int lineNumber);
    43   /** @returns the Buffer Iterator, that enables externals to walk through the Buffer */
    44   inline tIterator<char>* getBufferIterator() const { return bufferIterator; };
    45   /** @returns the Count of lines processed by the Shell. */
     40  /** @returns the List of stings from the Buffer */
     41  const tList<char>* getBuffer() const { return this->buffer; };
     42 /** @returns the Count of lines processed by the Shell. */
    4643  inline long getLineCount() const { return this->lineCount; };
    4744
     
    5148    ShellBuffer();
    5249
    53 
    5450  private:
    5551   static ShellBuffer*      singletonRef;                       //!< The singleton-reference to the only memeber of this class.
    5652   unsigned int             bufferSize;                         //!< The Size of the buffer
    5753   tList<char>*             buffer;                             //!< A list of stored char-arrays(strings) to store the history
    58    tIterator<char>*         bufferIterator;                     //!< An iterator for the Shells main buffer.
    5954
    6055   Shell*                   shell;                              //!< the Registered Shell.
Note: See TracChangeset for help on using the changeset viewer.