Changeset 7372 in orxonox.OLD for trunk/src/lib/shell/shell_completion.h
- Timestamp:
- Apr 26, 2006, 2:23:53 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_completion.h
r7371 r7372 26 26 //! an enumerator for different types the Shell can complete. 27 27 typedef enum { 28 SHELLC_NONE= 0,29 SHELLC_CLASS= 1,30 SHELLC_OBJECT= 2,31 SHELLC_FUNCTION= 4,32 SHELLC_ALIAS= 8,33 } SHELLC_TYPE;28 NullCompletion = 0, 29 ClassCompletion = 1, 30 ObjectCompletion = 2, 31 FunctionCompletion = 4, 32 AliasCompletion = 8, 33 } CompletionType; 34 34 35 35 //! A struct for ShellElements (these are used as containers to identify an Input for what it is) 36 struct ShellC_Element{36 struct CompletionElement{ 37 37 std::string name; //!< the Name of the Element to be completed. 38 SHELLC_TYPEtype; //!< the type of the Element38 CompletionType type; //!< the type of the Element 39 39 }; 40 40 … … 57 57 58 58 59 bool addToCompleteList(const std::list<std::string>& inputList, const std::string& completionBegin, S HELLC_TYPEtype);60 bool addToCompleteList(const std::list<BaseObject*>& inputList, const std::string& completionBegin, S HELLC_TYPEtype);59 bool addToCompleteList(const std::list<std::string>& inputList, const std::string& completionBegin, ShellCompletion::CompletionType type); 60 bool addToCompleteList(const std::list<BaseObject*>& inputList, const std::string& completionBegin, ShellCompletion::CompletionType type); 61 61 void clearCompletionList(); 62 62 63 static const char* ShellCompletion::typeToString(SHELLC_TYPEtype);63 static const std::string& ShellCompletion::typeToString(ShellCompletion::CompletionType type); 64 64 65 65 private: 66 std::list<ShellC_Element> completionList; //!< A list of completions, that are io. 66 std::list<CompletionElement> completionList; //!< A list of completions, that are io. 67 68 69 static const std::string typeNames[]; //!< A list of Completion-Type-Names. 67 70 }; 68 71
Note: See TracChangeset
for help on using the changeset viewer.