orxonox::Shell Class Reference

#include <src/core/Shell.h>

Inheritance diagram for orxonox::Shell:

orxonox::OrxonoxClass orxonox::OutputBufferListener

List of all members.

Public Member Functions

void addLine (const std::string &line, int level=0)
void addOutputLevel (bool bAddOutputLevel)
void clearInput ()
void clearLines ()
void commandHistoryLengthChanged ()
void commandHistoryOffsetChanged ()
unsigned int getCursorPosition () const
std::list< std::string >
::const_iterator 
getEndIterator () const
std::string getInput () const
InputBuffergetInputBuffer ()
std::list< std::string >
::const_iterator 
getNewestLineIterator () const
unsigned int getNumLines () const
OutputBuffergetOutputBuffer ()
unsigned int getScrollPosition () const
void registerListener (ShellListener *listener)
virtual void setConfigValues ()
 Function to collect the SetConfigValue-macro calls.
void setCursorPosition (unsigned int cursor)
void setInput (const std::string &input)
 Shell ()
void unregisterListener (ShellListener *listener)
virtual ~Shell ()

Static Public Member Functions

static void clearShell ()
static ShellgetInstance ()
static void history ()

Private Member Functions

void addToHistory (const std::string &command)
void backspace ()
void clear ()
void configureInputBuffer ()
void cursor_end ()
void cursor_home ()
void cursor_left ()
void cursor_right ()
void deletechar ()
void execute ()
void exit ()
std::string getFromHistory () const
void hintandcomplete ()
void history_down ()
void history_up ()
void inputChanged ()
virtual void outputChanged ()
void scroll_down ()
void scroll_up ()
 Shell (const Shell &other)

Private Attributes

bool bAddOutputLevel_
std::vector< std::stringcommandHistory_
ConfigFileType commandHistoryConfigFileType_
bool finishedLastLine_
unsigned int historyOffset_
unsigned int historyPosition_
InputBufferinputBuffer_
std::list< std::stringlines_
std::list< ShellListener * > listeners_
unsigned int maxHistoryLength_
OutputBuffer outputBuffer_
std::list< std::string >
::const_iterator 
scrollIterator_
unsigned int scrollPosition_

Static Private Attributes

static ShellsingletonRef_s = 0


Constructor & Destructor Documentation

orxonox::Shell::Shell (  ) 

orxonox::Shell::~Shell (  )  [virtual]

orxonox::Shell::Shell ( const Shell other  )  [private]


Member Function Documentation

void orxonox::Shell::addLine ( const std::string line,
int  level = 0 
)

void orxonox::Shell::addOutputLevel ( bool  bAddOutputLevel  )  [inline]

void orxonox::Shell::addToHistory ( const std::string command  )  [private]

void orxonox::Shell::backspace (  )  [private]

void orxonox::Shell::clear (  )  [private]

void orxonox::Shell::clearInput (  )  [inline]

void orxonox::Shell::clearLines (  ) 

void orxonox::Shell::clearShell (  )  [static]

References clearLines(), and getInstance().

void orxonox::Shell::commandHistoryLengthChanged (  ) 

void orxonox::Shell::commandHistoryOffsetChanged (  ) 

void orxonox::Shell::configureInputBuffer (  )  [private]

void orxonox::Shell::cursor_end (  )  [private]

void orxonox::Shell::cursor_home (  )  [private]

void orxonox::Shell::cursor_left (  )  [private]

void orxonox::Shell::cursor_right (  )  [private]

void orxonox::Shell::deletechar (  )  [private]

void orxonox::Shell::execute (  )  [private]

void orxonox::Shell::exit (  )  [private]

unsigned int orxonox::Shell::getCursorPosition (  )  const [inline]

std::list< std::string >::const_iterator orxonox::Shell::getEndIterator (  )  const

References lines_.

std::string orxonox::Shell::getFromHistory (  )  const [private]

std::string orxonox::Shell::getInput (  )  const [inline]

InputBuffer* orxonox::Shell::getInputBuffer (  )  [inline]

static Shell& orxonox::Shell::getInstance (  )  [inline, static]

std::list< std::string >::const_iterator orxonox::Shell::getNewestLineIterator (  )  const

unsigned int orxonox::Shell::getNumLines (  )  const [inline]

OutputBuffer& orxonox::Shell::getOutputBuffer (  )  [inline]

unsigned int orxonox::Shell::getScrollPosition (  )  const [inline]

void orxonox::Shell::hintandcomplete (  )  [private]

void orxonox::Shell::history (  )  [static]

void orxonox::Shell::history_down (  )  [private]

void orxonox::Shell::history_up (  )  [private]

void orxonox::Shell::inputChanged (  )  [private]

void orxonox::Shell::outputChanged (  )  [private, virtual]

void orxonox::Shell::registerListener ( ShellListener listener  ) 

References listeners_.

Referenced by orxonox::InGameConsole::activate().

void orxonox::Shell::scroll_down (  )  [private]

void orxonox::Shell::scroll_up (  )  [private]

void orxonox::Shell::setConfigValues (  )  [virtual]

void orxonox::Shell::setCursorPosition ( unsigned int  cursor  ) 

void orxonox::Shell::setInput ( const std::string input  ) 

void orxonox::Shell::unregisterListener ( ShellListener listener  ) 


Member Data Documentation

Referenced by outputChanged(), and Shell().

Referenced by setConfigValues(), and Shell().

unsigned int orxonox::Shell::historyOffset_ [private]

unsigned int orxonox::Shell::historyPosition_ [private]

std::list<std::string> orxonox::Shell::lines_ [private]

unsigned int orxonox::Shell::maxHistoryLength_ [private]

Referenced by addLine(), outputChanged(), and Shell().

std::list<std::string>::const_iterator orxonox::Shell::scrollIterator_ [private]

unsigned int orxonox::Shell::scrollPosition_ [private]

Shell * orxonox::Shell::singletonRef_s = 0 [static, private]

Referenced by Shell(), and ~Shell().


The documentation for this class was generated from the following files:

Generated on Tue Jul 28 16:23:03 2009 for Orxonox by  doxygen 1.5.6