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
|
Line | |
---|
1 | /*! |
---|
2 | * @file shell_completion.h |
---|
3 | * @brief The Shell Completion Tasks |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _SHELL_COMPLETION_H |
---|
7 | #define _SHELL_COMPLETION_H |
---|
8 | |
---|
9 | // FORWARD DECLARATION |
---|
10 | class BaseObject; |
---|
11 | class ShellInput; |
---|
12 | template<class T> class tList; |
---|
13 | #ifndef NULL |
---|
14 | #define NULL 0 //!< a pointer to NULL |
---|
15 | #endif |
---|
16 | |
---|
17 | //! A class for ... |
---|
18 | class ShellCompletion { |
---|
19 | |
---|
20 | public: |
---|
21 | ShellCompletion(); |
---|
22 | virtual ~ShellCompletion(); |
---|
23 | |
---|
24 | bool autoComplete(ShellInput* input); |
---|
25 | bool classComplete(const char* classBegin); |
---|
26 | bool objectComplete(const char* objectBegin, long classID); |
---|
27 | bool functionComplete(const char* functionBegin); |
---|
28 | |
---|
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 | |
---|
36 | private: |
---|
37 | tList<const char>* completionList; //!< A list of completions, that are io. |
---|
38 | }; |
---|
39 | |
---|
40 | #endif /* _SHELL_COMPLETION_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.