- Timestamp:
- Aug 27, 2010, 7:29:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/command/CommandEvaluation.h
r7228 r7230 34 34 #include <string> 35 35 36 #include "ArgumentCompletionListElement.h"37 36 #include "util/SubString.h" 38 37 #include "util/MultiType.h" 38 #include "ArgumentCompletionListElement.h" 39 #include "Functor.h" 39 40 40 41 namespace orxonox … … 47 48 CommandEvaluation(); 48 49 49 int execute() const;50 MultiType query(int* error = 0) const;50 int execute(); 51 MultiType query(int* error = 0); 51 52 52 std::string complete() const; 53 std::string hint() const; 53 std::string complete(); 54 std::string hint(); 55 56 int evaluateParams(bool bPrintError = false); 54 57 55 58 inline bool isValid() const … … 59 62 { return this->execCommand_; } 60 63 61 // void setEvaluatedParameter(unsigned int index, MultiTypeparam);62 //MultiType getEvaluatedParameter(unsigned int index) const;64 void setEvaluatedParameter(unsigned int index, const MultiType& param); 65 MultiType getEvaluatedParameter(unsigned int index) const; 63 66 64 67 private: … … 69 72 const std::string& getToken(unsigned int i) const; 70 73 71 void retrievePossibleArguments() const;74 void retrievePossibleArguments(); 72 75 73 76 static void strip(ArgumentCompletionList& list, const std::string& fragment); … … 84 87 unsigned int execArgumentsOffset_; 85 88 unsigned int hintArgumentsOffset_; 86 mutable bool bPossibleArgumentsRetrieved_; 87 mutable ArgumentCompletionList possibleArguments_; 89 bool bPossibleArgumentsRetrieved_; 90 ArgumentCompletionList possibleArguments_; 91 92 bool bEvaluatedParams_; 93 bool bTriedToEvaluatedParams_; 94 unsigned int numberOfEvaluatedParams_; 95 MultiType param_[MAX_FUNCTOR_ARGUMENTS]; 88 96 }; 89 97 }
Note: See TracChangeset
for help on using the changeset viewer.