Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Nov 26, 2005, 4:17:20 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more stl::list

File:
1 edited

Legend:

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

    r5246 r5781  
    99
    1010#include <stdarg.h>
     11#include <list>
    1112
    1213#define      SHELL_BUFFER_SIZE       16384         //!< The Size of the input-buffers (should be large enough to carry any kind of input)
     
    3940  void addBufferLine(const char* line, va_list arg);
    4041  /** @returns the List of stings from the Buffer */
    41   const tList<char>* getBuffer() const { return this->buffer; };
     42  const std::list<char*>* getBuffer() const { return &this->buffer; };
    4243 /** @returns the Count of lines processed by the Shell. */
    4344  inline long getLineCount() const { return this->lineCount; };
     
    4950
    5051  private:
    51    static ShellBuffer*      singletonRef;                       //!< The singleton-reference to the only memeber of this class.
    52    unsigned int             bufferSize;                         //!< The Size of the buffer
    53    tList<char>*             buffer;                             //!< A list of stored char-arrays(strings) to store the history
     52    static ShellBuffer*      singletonRef;                       //!< The singleton-reference to the only memeber of this class.
     53    unsigned int             bufferSize;                         //!< The Size of the buffer
     54    std::list<char*>         buffer;                             //!< A list of stored char-arrays(strings) to store the history
    5455
    55    Shell*                   shell;                              //!< the Registered Shell.
    56    char                     bufferArray[SHELL_BUFFER_SIZE];     //!< a BUFFER for fast writing
    57    char                     keepBufferArray[SHELL_BUFFER_SIZE]; //!< a BUFFER to have multi-non-newLine commands be copied into the shell.
    58    bool                     keepBuffer;                         //!< if the keepbuffer contains unfinished lines.
     56    Shell*                   shell;                              //!< the Registered Shell.
     57    char                     bufferArray[SHELL_BUFFER_SIZE];     //!< a BUFFER for fast writing
     58    char                     keepBufferArray[SHELL_BUFFER_SIZE]; //!< a BUFFER to have multi-non-newLine commands be copied into the shell.
     59    bool                     keepBuffer;                         //!< if the keepbuffer contains unfinished lines.
    5960
    60    unsigned long            lineCount;                          //!< how many Lines have been written out so far.
     61    unsigned long            lineCount;                          //!< how many Lines have been written out so far.
    6162};
    6263
Note: See TracChangeset for help on using the changeset viewer.