Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 22, 2008, 1:18:18 AM (16 years ago)
Author:
landauf
Message:

changed large parts of CommandExecutor and CommandEvaluation. very unfinished.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/core/CommandExecutor.h

    r1341 r1351  
    4444        public:
    4545            static bool execute(const std::string& command, bool useTcl = true);
    46             static bool execute(const CommandEvaluation& evaluation);
    47 
    4846            static std::string complete(const std::string& command);
    49             static std::string complete(const CommandEvaluation& evaluation);
    50 
    5147            static std::string hint(const std::string& command);
    52             static std::string hint(const CommandEvaluation& evaluation);
    5348
    5449            static CommandEvaluation evaluate(const std::string& command);
    55 
    5650            static const CommandEvaluation& getLastEvaluation();
    5751
     
    8377
    8478            static void parse(const std::string& command, bool bInitialize = true);
    85             static void initialize(const std::string& command);
    8679
    87             static bool argumentsGiven(unsigned int num);
     80            static bool argumentsFinished(unsigned int num);
     81            static unsigned int argumentsFinished();
    8882            static unsigned int argumentsGiven();
    89 
     83            static bool enoughArgumentsGiven(ConsoleCommand* command, unsigned int head);
    9084            static std::string getToken(unsigned int index);
    9185
    92             static bool enoughParametersGiven(unsigned int head, Executor* executor);
     86            static void createListOfPossibleFunctionClasses(const std::string& fragment);
     87            static void createListOfPossibleFunctions(const std::string& fragment, Identifier* identifier = 0);
    9388
    94             static void createListOfPossibleShortcuts(const std::string& fragment);
    95             static void createListOfPossibleFunctionClasses(const std::string& fragment);
    96             static void createListOfPossibleFunctions(const std::string& fragment, Identifier* identifier);
    97             static void createListOfPossibleConfigValueClasses(const std::string& fragment);
    98             static void createListOfPossibleConfigValues(const std::string& fragment, Identifier* identifier);
    99             static void createListOfPossibleKeys(const std::string& fragment);
     89            static Identifier* getPossibleIdentifier(const std::string& name);
     90            static ConsoleCommand* getPossibleCommand(const std::string& name, Identifier* identifier = 0);
    10091
    10192            static bool compareStringsInList(const std::pair<const std::string*, const std::string*>& first, const std::pair<const std::string*, const std::string*>& second);
    10293
    103             static std::string dump(const std::list<std::pair<const std::string*, const std::string*> >& list);
    104             static std::string dump(const ConsoleCommand* command);
    105             static std::string dump(const ConfigValueContainer* container);
    106 
    107             static std::string getCommonBegin(const std::list<std::pair<const std::string*, const std::string*> >& list);
    108 
    109             static Identifier* getIdentifierOfPossibleFunctionClass(const std::string& name);
    110             static ConsoleCommand* getExecutorOfPossibleShortcut(const std::string& name);
    111             static ConsoleCommand* getExecutorOfPossibleFunction(const std::string& name, Identifier* identifier);
    112             static Identifier* getIdentifierOfPossibleConfigValueClass(const std::string& name);
    113             static ConfigValueContainer* getContainerOfPossibleConfigValue(const std::string& name, Identifier* identifier);
    114             static ConfigValueContainer* getContainerOfPossibleKey(const std::string& name);
    11594
    11695            CommandEvaluation evaluation_;
    117 
    11896            std::map<std::string, ConsoleCommand*> consoleCommandShortcuts_;
    11997            std::map<std::string, ConsoleCommand*> consoleCommandShortcuts_LC_;
Note: See TracChangeset for help on using the changeset viewer.