Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/shell/shell_completion.h @ 5180

Last change on this file since 5180 was 5178, checked in by bensch, 19 years ago

orxonox/trunk: added class ShellInput for the InputLine, also worked a bit on ShellCompletion

File size: 1.2 KB
RevLine 
[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]10class BaseObject;
11template<class T> class tList;
12#ifndef NULL
13#define NULL 0            //!< a pointer to NULL
14#endif
[3543]15
[3955]16//! A class for ...
[5170]17class ShellCompletion {
[1853]18
[1904]19 public:
[5170]20  ShellCompletion();
21  virtual ~ShellCompletion();
[1853]22
[5178]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);
[3245]27
[5178]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
[3245]35 private:
[5178]36   tList<const char>*       completionList;          //!< A list of completions, that are io.
[1853]37};
38
[5170]39#endif /* _SHELL_COMPLETION_H */
Note: See TracBrowser for help on using the repository browser.