Changeset 1446 for code/branches/network/src/core/Shell.h
- Timestamp:
- May 28, 2008, 5:30:11 AM (17 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/core/Shell.h
r1445 r1446 71 71 void unregisterListener(ShellListener* listener); 72 72 73 void setInputBuffer(InputBuffer* buffer); 73 74 inline InputBuffer& getInputBuffer() 74 { return this->inputBuffer_; }75 { return (*this->inputBuffer_); } 75 76 inline OutputBuffer& getOutputBuffer() 76 77 { return this->outputBuffer_; } … … 78 79 void setCursorPosition(unsigned int cursor); 79 80 inline unsigned int getCursorPosition() const 80 { return this->inputBuffer_ .getCursorPosition(); }81 { return this->inputBuffer_->getCursorPosition(); } 81 82 82 83 void setInput(const std::string& input); … … 85 86 { this->setInput(""); } 86 87 inline std::string getInput() const 87 { return this->inputBuffer_ .get(); }88 { return this->inputBuffer_->get(); } 88 89 89 90 std::list<std::string>::const_iterator getNewestLineIterator() const; … … 127 128 128 129 std::list<ShellListener*> listeners_; 129 InputBuffer inputBuffer_;130 InputBuffer* inputBuffer_; 130 131 OutputBuffer outputBuffer_; 131 132 bool finishedLastLine_;
Note: See TracChangeset
for help on using the changeset viewer.