Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5177 in orxonox.OLD for trunk


Ignore:
Timestamp:
Sep 12, 2005, 12:30:32 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more integration/bugFix

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell.cc

    r5176 r5177  
    719719
    720720
    721   char* tmpChar = ShellBuffer::getInstance()->getBufferIterator()->firstElement();
    722   while(tmpChar != NULL)
    723   {
    724     printf(tmpChar);
    725     tmpChar = ShellBuffer::getInstance()->getBufferIterator()->nextElement();
    726   }
     721  ShellBuffer::getInstance()->debug();
    727722}
    728723
  • trunk/src/lib/shell/shell_buffer.cc

    r5176 r5177  
    4040  this->bufferIterator = this->buffer->getIterator();
    4141
    42   this->setBufferSize(10);
     42  this->setBufferSize(100);
    4343}
    4444
     
    9191#endif
    9292
    93 //  vprintf(line, arguments);
     93  vprintf(line, arguments);
    9494#if DEBUG < 3
    9595  else
     
    195195  delete charIterator;
    196196}
     197
     198/**
     199 * displays some nice output from the Shell
     200 */
     201void ShellBuffer::debug() const
     202{
     203  PRINT(3)("Debugging output to console (not this shell)\n");
     204
     205  char* tmpChar = bufferIterator->firstElement();
     206  while(tmpChar != NULL)
     207  {
     208    printf(tmpChar);
     209    tmpChar = bufferIterator->nextElement();
     210  }
     211}
  • trunk/src/lib/shell/shell_buffer.h

    r5176 r5177  
    3939  /** @returns the Buffer Iterator, that enables externals to walk through the Buffer */
    4040  inline tIterator<char>* getBufferIterator() const { return bufferIterator; };
    41   /** @returns the Count of lines processed by the Shell.
     41  /** @returns the Count of lines processed by the Shell. */
    4242  inline long getLineCount() const { return this->lineCount; };
     43
     44  void debug() const;
    4345
    4446  private:
  • trunk/src/orxonox.cc

    r5175 r5177  
    9696  ShellCommandClass::unregisterAllCommands();
    9797  ShellCommandBase::debug();
     98  delete ShellBuffer::getInstance();
    9899
    99100  delete EventHandler::getInstance();
Note: See TracChangeset for help on using the changeset viewer.