Last change
on this file since 5181 was
5181,
checked in by bensch, 20 years ago
|
orxonox/trunk: partial Completion in the ShellInput again (show but no Completion)
|
File size:
1.2 KB
|
Rev | Line | |
---|
[4838] | 1 | /*! |
---|
[5170] | 2 | * @file shell_completion.h |
---|
| 3 | * @brief The Shell Completion Tasks |
---|
[3245] | 4 | */ |
---|
[1853] | 5 | |
---|
[5170] | 6 | #ifndef _SHELL_COMPLETION_H |
---|
| 7 | #define _SHELL_COMPLETION_H |
---|
[1853] | 8 | |
---|
[4838] | 9 | // FORWARD DECLARATION |
---|
[5178] | 10 | class BaseObject; |
---|
[5181] | 11 | class ShellInput; |
---|
[5178] | 12 | template<class T> class tList; |
---|
| 13 | #ifndef NULL |
---|
| 14 | #define NULL 0 //!< a pointer to NULL |
---|
| 15 | #endif |
---|
[3543] | 16 | |
---|
[3955] | 17 | //! A class for ... |
---|
[5170] | 18 | class ShellCompletion { |
---|
[1853] | 19 | |
---|
[1904] | 20 | public: |
---|
[5170] | 21 | ShellCompletion(); |
---|
| 22 | virtual ~ShellCompletion(); |
---|
[1853] | 23 | |
---|
[5181] | 24 | bool autoComplete(ShellInput* input); |
---|
[5178] | 25 | bool classComplete(const char* classBegin); |
---|
| 26 | bool objectComplete(const char* objectBegin, long classID); |
---|
| 27 | bool functionComplete(const char* functionBegin); |
---|
[3245] | 28 | |
---|
[5178] | 29 | bool generalComplete(const tList<const char>* stringList, const char* begin, const char* displayAs = "%s", const char* addBack = NULL, const char* addFront = NULL); |
---|
| 30 | |
---|
| 31 | const tList<const char>* createCompleteList(const tList<const char>* inputList, const char* classNameBegin); |
---|
| 32 | const tList<const char>* createCompleteList(const tList<BaseObject>* inputList, const char* classNameBegin); |
---|
| 33 | // const tList<const char>* createCompleteList(const tList<ShellCommandBase>* inputList, const char* classNameBegin); |
---|
| 34 | |
---|
| 35 | |
---|
[3245] | 36 | private: |
---|
[5178] | 37 | tList<const char>* completionList; //!< A list of completions, that are io. |
---|
[1853] | 38 | }; |
---|
| 39 | |
---|
[5170] | 40 | #endif /* _SHELL_COMPLETION_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.