Changeset 1351 for code/branches/console/src/core/CommandExecutor.h
- Timestamp:
- May 22, 2008, 1:18:18 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/CommandExecutor.h
r1341 r1351 44 44 public: 45 45 static bool execute(const std::string& command, bool useTcl = true); 46 static bool execute(const CommandEvaluation& evaluation);47 48 46 static std::string complete(const std::string& command); 49 static std::string complete(const CommandEvaluation& evaluation);50 51 47 static std::string hint(const std::string& command); 52 static std::string hint(const CommandEvaluation& evaluation);53 48 54 49 static CommandEvaluation evaluate(const std::string& command); 55 56 50 static const CommandEvaluation& getLastEvaluation(); 57 51 … … 83 77 84 78 static void parse(const std::string& command, bool bInitialize = true); 85 static void initialize(const std::string& command);86 79 87 static bool argumentsGiven(unsigned int num); 80 static bool argumentsFinished(unsigned int num); 81 static unsigned int argumentsFinished(); 88 82 static unsigned int argumentsGiven(); 89 83 static bool enoughArgumentsGiven(ConsoleCommand* command, unsigned int head); 90 84 static std::string getToken(unsigned int index); 91 85 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); 93 88 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); 100 91 101 92 static bool compareStringsInList(const std::pair<const std::string*, const std::string*>& first, const std::pair<const std::string*, const std::string*>& second); 102 93 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);115 94 116 95 CommandEvaluation evaluation_; 117 118 96 std::map<std::string, ConsoleCommand*> consoleCommandShortcuts_; 119 97 std::map<std::string, ConsoleCommand*> consoleCommandShortcuts_LC_;
Note: See TracChangeset
for help on using the changeset viewer.