Last change
on this file since 5178 was
5178,
checked in by bensch, 20 years ago
|
orxonox/trunk: added class ShellInput for the InputLine, also worked a bit on ShellCompletion
|
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 | template<class T> class tList; |
---|
12 | #ifndef NULL |
---|
13 | #define NULL 0 //!< a pointer to NULL |
---|
14 | #endif |
---|
15 | |
---|
16 | //! A class for ... |
---|
17 | class ShellCompletion { |
---|
18 | |
---|
19 | public: |
---|
20 | ShellCompletion(); |
---|
21 | virtual ~ShellCompletion(); |
---|
22 | |
---|
23 | bool autoComplete(const char* inputLine); |
---|
24 | bool classComplete(const char* classBegin); |
---|
25 | bool objectComplete(const char* objectBegin, long classID); |
---|
26 | bool functionComplete(const char* functionBegin); |
---|
27 | |
---|
28 | bool generalComplete(const tList<const char>* stringList, const char* begin, const char* displayAs = "%s", const char* addBack = NULL, const char* addFront = NULL); |
---|
29 | |
---|
30 | const tList<const char>* createCompleteList(const tList<const char>* inputList, const char* classNameBegin); |
---|
31 | const tList<const char>* createCompleteList(const tList<BaseObject>* inputList, const char* classNameBegin); |
---|
32 | // const tList<const char>* createCompleteList(const tList<ShellCommandBase>* inputList, const char* classNameBegin); |
---|
33 | |
---|
34 | |
---|
35 | private: |
---|
36 | tList<const char>* completionList; //!< A list of completions, that are io. |
---|
37 | }; |
---|
38 | |
---|
39 | #endif /* _SHELL_COMPLETION_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.