Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 27, 2010, 2:41:03 PM (14 years ago)
Author:
landauf
Message:

re-implemented CommandExecutor and CommandEvaluation. parameter evaluation is currently not implemented, will come soon.

File:
1 edited

Legend:

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

    r7222 r7228  
    329329            static inline const std::map<std::string, std::map<std::string, _ConsoleCommand*> >& getCommands()
    330330                { return _ConsoleCommand::getCommandMap(); }
    331 
    332             static inline const _ConsoleCommand* getCommand(const std::string& name, bool bPrintError = false)
     331            static inline const std::map<std::string, std::map<std::string, _ConsoleCommand*> >& getCommandsLC()
     332                { return _ConsoleCommand::getCommandMapLC(); }
     333
     334            static inline _ConsoleCommand* getCommand(const std::string& name, bool bPrintError = false)
    333335                { return _ConsoleCommand::getCommand("", name, bPrintError); }
    334             static const _ConsoleCommand* getCommand(const std::string& group, const std::string& name, bool bPrintError = false);
     336            static inline _ConsoleCommand* getCommandLC(const std::string& name, bool bPrintError = false)
     337                { return _ConsoleCommand::getCommandLC("", name, bPrintError); }
     338
     339            static _ConsoleCommand* getCommand(const std::string& group, const std::string& name, bool bPrintError = false);
     340            static _ConsoleCommand* getCommandLC(const std::string& group, const std::string& name, bool bPrintError = false);
    335341
    336342            static void destroyAll();
     
    338344        private:
    339345            static std::map<std::string, std::map<std::string, _ConsoleCommand*> >& getCommandMap();
     346            static std::map<std::string, std::map<std::string, _ConsoleCommand*> >& getCommandMapLC();
     347
    340348            static void registerCommand(const std::string& group, const std::string& name, _ConsoleCommand* command);
    341349            static void unregisterCommand(_ConsoleCommand* command);
Note: See TracChangeset for help on using the changeset viewer.