Changeset 5994 for code/branches/console/src/libraries/core/Shell.h
- Timestamp:
- Oct 27, 2009, 2:47:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/libraries/core/Shell.h
r5986 r5994 34 34 #include <cassert> 35 35 #include <list> 36 #include <sstream> 36 37 #include <string> 37 38 #include <vector> 38 39 39 #include "util/Output Buffer.h"40 #include "util/OutputHandler.h" 40 41 #include "input/InputBuffer.h" 41 42 #include "OrxonoxClass.h" … … 61 62 }; 62 63 63 class _CoreExport Shell : public Singleton<Shell>, virtual public OrxonoxClass, public Output BufferListener64 class _CoreExport Shell : public Singleton<Shell>, virtual public OrxonoxClass, public OutputListener 64 65 { 65 66 friend class Singleton<Shell>; … … 71 72 static void history(); 72 73 73 v irtual void setConfigValues();74 void setConfigValues(); 74 75 void commandHistoryOffsetChanged(); 75 76 void commandHistoryLengthChanged(); … … 80 81 inline InputBuffer* getInputBuffer() 81 82 { return this->inputBuffer_; } 82 inline OutputBuffer& getOutputBuffer()83 { return this->outputBuffer_; }84 83 85 84 void setCursorPosition(unsigned int cursor); … … 117 116 118 117 virtual void outputChanged(); 118 119 119 void inputChanged(); 120 120 void execute(); … … 144 144 std::list<ShellListener*> listeners_; 145 145 InputBuffer* inputBuffer_; 146 OutputBufferoutputBuffer_;146 std::stringstream outputBuffer_; 147 147 bool finishedLastLine_; 148 148 std::list<std::string> lines_; … … 154 154 unsigned int historyOffset_; 155 155 bool bAddOutputLevel_; 156 int softDebugLevel_; 156 157 157 158 ConfigFileType commandHistoryConfigFileType_;
Note: See TracChangeset
for help on using the changeset viewer.