Changeset 1390 for code/branches/console/src/core/ConsoleCommand.h
- Timestamp:
- May 23, 2008, 2:10:52 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/ConsoleCommand.h
r1341 r1390 36 36 #include "Identifier.h" 37 37 #include "CommandExecutor.h" 38 #include "ArgumentCompletionFunctions.h" 38 39 39 40 … … 73 74 { 74 75 public: 75 ConsoleCommand(FunctorStatic* functor, const std::string& name = "") : ExecutorStatic(functor, name), accessLevel_(AccessLevel::None) {}76 ConsoleCommand(FunctorStatic* functor, const std::string& name = ""); 76 77 77 78 inline ConsoleCommand& setDescription(const std::string& description) … … 99 100 { return this->accessLevel_; } 100 101 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 101 108 private: 102 109 AccessLevel::Level accessLevel_; 110 const std::list<std::pair<std::string, std::string> >& (*autocompletionFunction_[5]) (void); 103 111 }; 104 112
Note: See TracChangeset
for help on using the changeset viewer.