Changeset 6004 for code/branches/console/src/libraries/core/Shell.h
- Timestamp:
- Oct 30, 2009, 12:39:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/libraries/core/Shell.h
r5994 r6004 32 32 #include "CorePrereqs.h" 33 33 34 #include <cassert>35 34 #include <list> 36 35 #include <sstream> … … 39 38 40 39 #include "util/OutputHandler.h" 41 #include "input/InputBuffer.h"42 40 #include "OrxonoxClass.h" 43 41 #include "ConfigFileManager.h" 42 #include "input/InputBuffer.h" 44 43 45 44 namespace orxonox … … 62 61 }; 63 62 64 class _CoreExport Shell : public Singleton<Shell>,virtual public OrxonoxClass, public OutputListener63 class _CoreExport Shell : virtual public OrxonoxClass, public OutputListener 65 64 { 66 friend class Singleton<Shell>;67 65 public: 68 Shell( );66 Shell(const std::string& consoleName, bool bScrollable); 69 67 virtual ~Shell(); 70 71 static void clearShell();72 static void history();73 68 74 69 void setConfigValues(); … … 100 95 101 96 inline unsigned int getNumLines() const 102 { return this-> lines_.size(); }97 { return this->outputLines_.size(); } 103 98 inline unsigned int getScrollPosition() const 104 99 { return this->scrollPosition_; } … … 115 110 std::string getFromHistory() const; 116 111 117 virtual void outputChanged( );112 virtual void outputChanged(int level); 118 113 119 114 void inputChanged(); … … 146 141 std::stringstream outputBuffer_; 147 142 bool finishedLastLine_; 148 std::list<std::string> lines_;143 std::list<std::string> outputLines_; 149 144 std::list<std::string>::const_iterator scrollIterator_; 150 145 unsigned int scrollPosition_; 146 unsigned int historyPosition_; 147 bool bAddOutputLevel_; 148 ConfigFileType commandHistoryConfigFileType_; 149 const std::string consoleName_; 150 const bool bScrollable_; 151 152 // Config values 153 unsigned int maxHistoryLength_; 154 unsigned int historyOffset_; 151 155 std::vector<std::string> commandHistory_; 152 unsigned int maxHistoryLength_;153 unsigned int historyPosition_;154 unsigned int historyOffset_;155 bool bAddOutputLevel_;156 156 int softDebugLevel_; 157 158 ConfigFileType commandHistoryConfigFileType_;159 160 static Shell* singletonPtr_s;161 157 }; 162 158 }
Note: See TracChangeset
for help on using the changeset viewer.