Changeset 9667 for code/trunk/src/libraries/core/command
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core6 merged: 9552-9554,9556-9574,9577-9579,9585-9593,9596-9612,9626-9662
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/command/ArgumentCompletionFunctions.cc
r8858 r9667 39 39 #include "util/Convert.h" 40 40 #include "util/StringUtils.h" 41 #include "core/ Identifier.h"42 #include "core/ ConfigFileManager.h"43 #include "core/ ConfigValueContainer.h"41 #include "core/class/Identifier.h" 42 #include "core/config/SettingsConfigFile.h" 43 #include "core/config/ConfigValueContainer.h" 44 44 #include "CommandExecutor.h" 45 45 #include "ConsoleCommand.h" -
code/trunk/src/libraries/core/command/Functor.h
r9550 r9667 120 120 #include "util/Output.h" 121 121 #include "util/MultiType.h" 122 #include "core/ OrxonoxClass.h"122 #include "core/object/Destroyable.h" 123 123 #include "FunctorPtr.h" 124 124 … … 303 303 /// Casts the object and registers as destruction listener. 304 304 inline void registerObject(O* object) 305 { OrxonoxClass* base = dynamic_cast<OrxonoxClass*>(object); if (base) { this->registerAsDestructionListener(base); } }305 { Destroyable* base = dynamic_cast<Destroyable*>(object); if (base) { this->registerAsDestructionListener(base); } } 306 306 /// Casts the object and unregisters as destruction listener. 307 307 inline void unregisterObject(O* object) 308 { OrxonoxClass* base = dynamic_cast<OrxonoxClass*>(object); if (base) { this->unregisterAsDestructionListener(base); } }309 310 /// Will be called by OrxonoxClass::~OrxonoxClass() if the stored object is deleted and the Functor is in safe mode.308 { Destroyable* base = dynamic_cast<Destroyable*>(object); if (base) { this->unregisterAsDestructionListener(base); } } 309 310 /// Will be called by Destroyable::~Destroyable() if the stored object is deleted and the Functor is in safe mode. 311 311 inline void objectDeleted() 312 312 { this->object_ = 0; } -
code/trunk/src/libraries/core/command/IOConsolePOSIX.cc
r9550 r9667 99 99 100 100 resetTerminalMode(); 101 this->shell_->destroy();101 delete this->shell_; 102 102 103 103 // Restore this->cout_ redirection -
code/trunk/src/libraries/core/command/IOConsoleWindows.cc
r9550 r9667 113 113 114 114 resetTerminalMode(); 115 this->shell_->destroy();115 delete this->shell_; 116 116 } 117 117 -
code/trunk/src/libraries/core/command/Shell.cc
r9550 r9667 40 40 #include "util/output/MemoryWriter.h" 41 41 #include "core/CoreIncludes.h" 42 #include "core/ ConfigFileManager.h"43 #include "core/ ConfigValueIncludes.h"42 #include "core/config/ConfigFileManager.h" 43 #include "core/config/ConfigValueIncludes.h" 44 44 #include "core/PathConfig.h" 45 45 #include "core/input/InputBuffer.h" … … 55 55 const OutputLevel User = level::user_info; 56 56 } 57 58 RegisterClassNoArgs(Shell); 57 59 58 60 /** … … 66 68 , bScrollable_(bScrollable) 67 69 { 68 Register RootObject(Shell);70 RegisterObject(Shell); 69 71 70 72 OutputManager::getInstance().registerListener(this); … … 96 98 Shell::~Shell() 97 99 { 98 this->inputBuffer_->destroy();100 delete this->inputBuffer_; 99 101 100 102 OutputManager::getInstance().unregisterListener(this); -
code/trunk/src/libraries/core/command/Shell.h
r8858 r9667 50 50 #include "util/output/BaseWriter.h" 51 51 #include "core/Core.h" 52 #include "core/OrxonoxClass.h"53 52 54 53 namespace orxonox … … 110 109 }; 111 110 112 Shell(const std::string& consoleName , bool bScrollable);111 Shell(const std::string& consoleName = "", bool bScrollable = true); 113 112 ~Shell(); 114 113 … … 200 199 unsigned int historyOffset_; ///< The command history is a circular buffer, this variable defines the current write-offset 201 200 std::vector<std::string> commandHistory_; ///< The history of commands that were entered by the user 202 static unsigned int cacheSize_s; ///< The maximum cache size of the CommandExecutor - this is stored here for better readability of the config file and because CommandExecutor is no OrxonoxClass201 static unsigned int cacheSize_s; ///< The maximum cache size of the CommandExecutor - this is stored here for better readability of the config file and because CommandExecutor is not configurable 203 202 }; 204 203 }
Note: See TracChangeset
for help on using the changeset viewer.