Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 25, 2010, 7:07:08 PM (14 years ago)
Author:
landauf
Message:

removed old console command implementation (doesn't compile)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/command/CommandExecutor.h

    r7203 r7216  
    5757            static const CommandEvaluation& getLastEvaluation();
    5858
    59             static ConsoleCommand& addConsoleCommandShortcut(ConsoleCommand* command, bool bDeleteAtExit = false);
    60             static ConsoleCommand* getConsoleCommandShortcut(const std::string& name);
    61             static ConsoleCommand* getLowercaseConsoleCommandShortcut(const std::string& name);
    62 
    63             /** @brief Returns the map that stores all console commands. @return The const_iterator */
    64             static inline const std::map<std::string, ConsoleCommand*>& getConsoleCommandShortcutMap() { return CommandExecutor::getInstance().consoleCommandShortcuts_; }
    65             /** @brief Returns a const_iterator to the beginning of the map that stores all console commands. @return The const_iterator */
    66             static inline std::map<std::string, ConsoleCommand*>::const_iterator getConsoleCommandShortcutMapBegin() { return CommandExecutor::getInstance().consoleCommandShortcuts_.begin(); }
    67             /** @brief Returns a const_iterator to the end of the map that stores all console commands. @return The const_iterator */
    68             static inline std::map<std::string, ConsoleCommand*>::const_iterator getConsoleCommandShortcutMapEnd() { return CommandExecutor::getInstance().consoleCommandShortcuts_.end(); }
    69 
    70             /** @brief Returns the map that stores all console commands with their names in lowercase. @return The const_iterator */
    71             static inline const std::map<std::string, ConsoleCommand*>& getLowercaseConsoleCommandShortcutMap() { return CommandExecutor::getInstance().consoleCommandShortcuts_LC_; }
    72             /** @brief Returns a const_iterator to the beginning of the map that stores all console commands with their names in lowercase. @return The const_iterator */
    73             static inline std::map<std::string, ConsoleCommand*>::const_iterator getLowercaseConsoleCommandShortcutMapBegin() { return CommandExecutor::getInstance().consoleCommandShortcuts_LC_.begin(); }
    74             /** @brief Returns a const_iterator to the end of the map that stores all console commands with their names in lowercase. @return The const_iterator */
    75             static inline std::map<std::string, ConsoleCommand*>::const_iterator getLowercaseConsoleCommandShortcutMapEnd() { return CommandExecutor::getInstance().consoleCommandShortcuts_LC_.end(); }
    76 
    77             static void destroyExternalCommands();
    78 
    7959        private:
    8060            CommandExecutor() {}
     
    10787
    10888            CommandEvaluation evaluation_;
    109             std::map<std::string, ConsoleCommand*> consoleCommandShortcuts_;
    110             std::map<std::string, ConsoleCommand*> consoleCommandShortcuts_LC_;
    111             std::set<ConsoleCommand*>              consoleCommandExternals_;
    11289    }; // tolua_export
    11390} // tolua_export
Note: See TracChangeset for help on using the changeset viewer.