Changeset 9331
- Timestamp:
- Jul 22, 2012, 9:35:54 PM (12 years ago)
- Location:
- code/branches/presentation2012merge/src/libraries/core/command
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/libraries/core/command/ConsoleCommand.cc
r8858 r9331 594 594 @param bPrintError If true, an error is printed if the command doesn't exist 595 595 */ 596 /* static */ constConsoleCommand* ConsoleCommand::getCommand(const std::string& group, const std::string& name, bool bPrintError)596 /* static */ ConsoleCommand* ConsoleCommand::getCommand(const std::string& group, const std::string& name, bool bPrintError) 597 597 { 598 598 // find the group … … 624 624 @param bPrintError If true, an error is printed if the command doesn't exist 625 625 */ 626 /* static */ constConsoleCommand* ConsoleCommand::getCommandLC(const std::string& group, const std::string& name, bool bPrintError)626 /* static */ ConsoleCommand* ConsoleCommand::getCommandLC(const std::string& group, const std::string& name, bool bPrintError) 627 627 { 628 628 std::string groupLC = getLowercase(group); -
code/branches/presentation2012merge/src/libraries/core/command/ConsoleCommand.h
r8858 r9331 382 382 public: 383 383 /// Constructor: Creates a manipulator for a given ConsoleCommand. 384 ConsoleCommandManipulator( const ConsoleCommand* command) : command_(const_cast<ConsoleCommand*>(command)) {}384 ConsoleCommandManipulator(ConsoleCommand* command) : command_(command) {} 385 385 386 386 /// Changes the current function of the command. @param function The new function-pointer @param bForce If true, the new function-pointer is always assigned, even if the headers don't match … … 619 619 620 620 /// Returns a manipulator for this command. 621 inline ConsoleCommandManipulator getManipulator() const621 inline ConsoleCommandManipulator getManipulator() 622 622 { return this; } 623 623 … … 667 667 668 668 /// Returns a command (shortcut) with given name. @param name The name of the command shortcut @param bPrintError If true, an error is printed if the command doesn't exist 669 static inline constConsoleCommand* getCommand(const std::string& name, bool bPrintError = false)669 static inline ConsoleCommand* getCommand(const std::string& name, bool bPrintError = false) 670 670 { return ConsoleCommand::getCommand("", name, bPrintError); } 671 671 /// Returns a command (shortcut) with given name in lowercase. @param name The lowercase name of the command shortcut @param bPrintError If true, an error is printed if the command doesn't exist 672 static inline constConsoleCommand* getCommandLC(const std::string& name, bool bPrintError = false)672 static inline ConsoleCommand* getCommandLC(const std::string& name, bool bPrintError = false) 673 673 { return ConsoleCommand::getCommandLC("", name, bPrintError); } 674 674 675 static constConsoleCommand* getCommand(const std::string& group, const std::string& name, bool bPrintError = false);676 static constConsoleCommand* getCommandLC(const std::string& group, const std::string& name, bool bPrintError = false);675 static ConsoleCommand* getCommand(const std::string& group, const std::string& name, bool bPrintError = false); 676 static ConsoleCommand* getCommandLC(const std::string& group, const std::string& name, bool bPrintError = false); 677 677 678 678 static void destroyAll();
Note: See TracChangeset
for help on using the changeset viewer.