Changeset 11071 for code/trunk/src/libraries/core/command/Shell.h
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (8 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/command/Shell.h
r10624 r11071 61 61 62 62 public: 63 virtual ~ShellListener() {} 63 ShellListener() = default; 64 virtual ~ShellListener() = default; 64 65 65 66 private: … … 87 88 public: 88 89 /// Defines the type of a line of text in the Shell - some types depend on the output level, others are of internal use. 89 enum LineType90 enum class LineType 90 91 { 91 92 DebugOutput = debug_output, … … 128 129 const std::string& getInput() const; 129 130 130 typedef std::list<std::pair<std::string, LineType> 131 typedef std::list<std::pair<std::string, LineType>> LineList; 131 132 LineList::const_iterator getNewestLineIterator() const; 132 133 LineList::const_iterator getEndIterator() const; 133 134 134 void addOutput(const std::string& text, LineType type = DebugOutput);135 void addLine(const std::string& line, LineType type = DebugOutput);135 void addOutput(const std::string& text, LineType type = LineType::DebugOutput); 136 void addLine(const std::string& line, LineType type = LineType::DebugOutput); 136 137 void clearOutput(); 137 138 … … 148 149 149 150 private: 150 Shell(const Shell& other); 151 // non-copyable: 152 Shell(const Shell&) = delete; 153 Shell& operator=(const Shell&) = delete; 151 154 152 155 // DevModeListener 153 v oid devModeChanged(bool value);156 virtual void devModeChanged(bool value) override; 154 157 155 158 void addToHistory(const std::string& command); … … 157 160 void clearInput(); 158 161 // BaseWriter 159 virtual void printLine(const std::string& line, OutputLevel level) ;162 virtual void printLine(const std::string& line, OutputLevel level) override; 160 163 161 164 void configureInputBuffer();
Note: See TracChangeset
for help on using the changeset viewer.