Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2008, 2:10:52 AM (16 years ago)
Author:
landauf
Message:

only girls sleep at this time :P

(started new implementation of ConsoleExecutor parser, but it's still buggy)

File:
1 edited

Legend:

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

    r1351 r1390  
    7878            static void parse(const std::string& command, bool bInitialize = true);
    7979
    80             static bool argumentsFinished(unsigned int num);
    8180            static unsigned int argumentsFinished();
    8281            static unsigned int argumentsGiven();
    83             static bool enoughArgumentsGiven(ConsoleCommand* command, unsigned int head);
    84             static std::string getToken(unsigned int index);
     82            static bool enoughArgumentsGiven(ConsoleCommand* command);
     83            static std::string getArgument(unsigned int index);
     84            static std::string getLastArgument();
    8585
    86             static void createListOfPossibleFunctionClasses(const std::string& fragment);
     86            static void createListOfPossibleIdentifiers(const std::string& fragment);
    8787            static void createListOfPossibleFunctions(const std::string& fragment, Identifier* identifier = 0);
     88            static void createListOfPossibleArguments(const std::string& fragment, ConsoleCommand* command, unsigned int param);
    8889
    8990            static Identifier* getPossibleIdentifier(const std::string& name);
    9091            static ConsoleCommand* getPossibleCommand(const std::string& name, Identifier* identifier = 0);
     92            static const std::string* getPossibleArgument(const std::string& name, ConsoleCommand* command, unsigned int param);
    9193
    9294            static bool compareStringsInList(const std::pair<const std::string*, const std::string*>& first, const std::pair<const std::string*, const std::string*>& second);
Note: See TracChangeset for help on using the changeset viewer.