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/ConsoleCommand.h

    r1341 r1390  
    3636#include "Identifier.h"
    3737#include "CommandExecutor.h"
     38#include "ArgumentCompletionFunctions.h"
    3839
    3940
     
    7374    {
    7475        public:
    75             ConsoleCommand(FunctorStatic* functor, const std::string& name = "") : ExecutorStatic(functor, name), accessLevel_(AccessLevel::None) {}
     76            ConsoleCommand(FunctorStatic* functor, const std::string& name = "");
    7677
    7778            inline ConsoleCommand& setDescription(const std::string& description)
     
    99100                { return this->accessLevel_; }
    100101
     102            ConsoleCommand& setArgumentCompletionList(unsigned int param, const std::list<std::pair<std::string, std::string> >& (*function) (void));
     103
     104            const std::list<std::pair<std::string, std::string> >& getArgumentCompletionList(unsigned int param) const;
     105            std::list<std::pair<std::string, std::string> >::const_iterator getArgumentCompletionListBegin(unsigned int param) const;
     106            std::list<std::pair<std::string, std::string> >::const_iterator getArgumentCompletionListEnd(unsigned int param) const;
     107
    101108        private:
    102109            AccessLevel::Level accessLevel_;
     110            const std::list<std::pair<std::string, std::string> >& (*autocompletionFunction_[5]) (void);
    103111    };
    104112
Note: See TracChangeset for help on using the changeset viewer.