Changeset 10817 for code/branches/cpp11_v2/src/libraries/core/command
- Timestamp:
- Nov 19, 2015, 11:40:28 AM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/libraries/core/command
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/command/ConsoleCommandIncludes.h
r10765 r10817 316 316 ~StaticallyInitializedConsoleCommand() { delete command_; } 317 317 318 virtual void load() ;319 virtual void unload() ;318 virtual void load() override; 319 virtual void unload() override; 320 320 321 321 inline ConsoleCommand& getCommand() -
code/branches/cpp11_v2/src/libraries/core/command/ConsoleCommandManager.h
r10769 r10817 38 38 39 39 #include "util/Singleton.h" 40 41 #include <map> 40 42 41 43 namespace orxonox -
code/branches/cpp11_v2/src/libraries/core/command/Functor.h
r10768 r10817 249 249 250 250 // see Functor::operator()() 251 MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) 251 MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) override 252 252 { 253 253 // call the function if an object was assigned … … 262 262 263 263 // see Functor::getType() 264 inline Functor::Type::Enum getType() const 264 inline Functor::Type::Enum getType() const override 265 265 { return Functor::Type::Member; } 266 266 … … 280 280 281 281 // see Functor::setRawObjectPointer() 282 inline void setRawObjectPointer(void* object) 282 inline void setRawObjectPointer(void* object) override 283 283 { this->setObject((O*)object); } 284 284 // see Functor::getRawObjectPointer() 285 inline void* getRawObjectPointer() const 285 inline void* getRawObjectPointer() const override 286 286 { return this->object_; } 287 287 288 288 // see Functor::setSafeMode() 289 inline void setSafeMode(bool bSafeMode) 289 inline void setSafeMode(bool bSafeMode) override 290 290 { 291 291 if (bSafeMode == this->bSafeMode_) … … 309 309 310 310 /// Will be called by Destroyable::~Destroyable() if the stored object is deleted and the Functor is in safe mode. 311 inline void objectDeleted() 311 inline void objectDeleted() override 312 312 { this->object_ = nullptr; } 313 313 … … 328 328 329 329 // see Functor::operator()() 330 MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) 330 MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) override 331 331 { 332 332 return (*this)((void*)nullptr, param1, param2, param3, param4, param5); … … 334 334 335 335 // see Functor::getType() 336 inline Functor::Type::Enum getType() const 336 inline Functor::Type::Enum getType() const override 337 337 { return Functor::Type::Static; } 338 338 339 339 // see Functor::setRawObjectPointer() 340 inline void setRawObjectPointer(void*) 340 inline void setRawObjectPointer(void*) override 341 341 { orxout(internal_warning) << "Can't assign an object pointer to a static functor" << endl; } 342 342 // see Functor::getRawObjectPointer() 343 inline void* getRawObjectPointer() const 343 inline void* getRawObjectPointer() const override 344 344 { return nullptr; } 345 345 346 346 // see Functor::setSafeMode() 347 inline void setSafeMode(bool) {}347 inline void setSafeMode(bool) override {} 348 348 }; 349 349 -
code/branches/cpp11_v2/src/libraries/core/command/IOConsolePOSIX.h
r8858 r10817 65 65 66 66 // Methods from ShellListener 67 void linesChanged() ;68 void lineAdded() ;69 void inputChanged() ;70 void cursorChanged() ;71 void executed() ;72 void exit() ;67 void linesChanged() override; 68 void lineAdded() override; 69 void inputChanged() override; 70 void cursorChanged() override; 71 void executed() override; 72 void exit() override; 73 73 74 74 bool willPrintStatusLines(); -
code/branches/cpp11_v2/src/libraries/core/command/IOConsoleWindows.h
r9676 r10817 67 67 68 68 // Methods from ShellListener 69 void linesChanged() ;70 void lineAdded() ;71 void inputChanged() ;72 void cursorChanged() ;73 void executed() ;74 void exit() ;69 void linesChanged() override; 70 void lineAdded() override; 71 void inputChanged() override; 72 void cursorChanged() override; 73 void executed() override; 74 void exit() override; 75 75 76 76 void resetTerminalMode(); -
code/branches/cpp11_v2/src/libraries/core/command/Shell.h
r10769 r10817 151 151 152 152 // DevModeListener 153 void devModeChanged(bool value) ;153 void devModeChanged(bool value) override; 154 154 155 155 void addToHistory(const std::string& command); … … 157 157 void clearInput(); 158 158 // BaseWriter 159 virtual void printLine(const std::string& line, OutputLevel level) ;159 virtual void printLine(const std::string& line, OutputLevel level) override; 160 160 161 161 void configureInputBuffer();
Note: See TracChangeset
for help on using the changeset viewer.