Changeset 7225 in orxonox.OLD for trunk/src/lib/shell/shell_completion.h
- Timestamp:
- Mar 18, 2006, 12:04:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_completion.h
r7221 r7225 11 11 12 12 #include <list> 13 #include <string> 13 14 14 15 // FORWARD DECLARATION … … 30 31 //! A struct for ShellElements (these are used as containers to identify an Input for what it is) 31 32 struct ShellC_Element{ 32 const char*name; //!< the Name of the Element to be completed.33 std::string name; //!< the Name of the Element to be completed. 33 34 SHELLC_TYPE type; //!< the type of the Element 34 35 }; … … 42 43 43 44 bool autoComplete(ShellInput* input = NULL); 44 bool classComplete(const char*classBegin);45 bool classComplete(const std::string& classBegin); 45 46 // long classMatch(const char* input, unsigned int* length); 46 bool objectComplete(const char*objectBegin, long classID);47 bool objectComplete(const std::string& objectBegin, long classID); 47 48 // bool objectMatch(const char* objectBegin, long classID, unsigned int* length); 48 bool functionComplete(const char* functionBegin, const char*className);49 bool functionComplete(const std::string& functionBegin, const std::string& className); 49 50 // bool functionMatch(const char* functionBegin, long classID, unsigned int* length); 50 bool aliasComplete(const char*aliasBegin);51 bool aliasComplete(const std::string& aliasBegin); 51 52 52 bool generalComplete(const char* begin, const char* displayAs = "%s", const char* addBack = NULL, const char* addFront = NULL); 53 bool generalComplete(const std::string& begin, const std::string& displayAs = "%s", 54 const std::string& addBack = "", const std::string& addFront = ""); 53 55 54 bool addToCompleteList(const std::list<std::string>* inputList, const char*completionBegin, SHELLC_TYPE type);55 bool addToCompleteList(const std::list<BaseObject*>* inputList, const char*completionBegin, SHELLC_TYPE type);56 bool addToCompleteList(const std::list<std::string>* inputList, const std::string& completionBegin, SHELLC_TYPE type); 57 bool addToCompleteList(const std::list<BaseObject*>* inputList, const std::string& completionBegin, SHELLC_TYPE type); 56 58 void emptyCompletionList(); 57 59
Note: See TracChangeset
for help on using the changeset viewer.