FShGetLine.h

Go to the documentation of this file.
00001 #ifndef __FSHGETLINE_H__
00002 #define __FSHGETLINE_H__
00003 
00004 /*
00005 
00006 $Header$
00007 
00008 */
00009 
00010 #include "GetLine.h"
00011 #include "TcpConnection.h"
00012 #include "Forth.h"
00013 
00014 static const char FSH_GETLINE_BEEP = 7;
00015 
00016 class FSh;
00017 
00018 class FShGetLine : public GetLine
00019 {
00020 
00021   PYLON_OBJECT
00022 
00023 public:
00024 
00025   FShGetLine(FSh *shell);
00026   virtual ~FShGetLine();
00027 
00028 protected:
00029 
00030   virtual int onTab(char *buffer, const int promptWidth, int *cursorLoc, int *i);
00031   virtual int onOutput(const char *buf);
00032   virtual int onPutc(const char c);
00033   virtual int onPuts(const char *buf);
00034   virtual unsigned int onStrlen(const char *str);
00035 
00036 private:
00037 
00038   FSh *_shell;
00039   TcpConnection *_connection;
00040   Forth *_forth;
00041 };
00042 
00043 #endif

Generated on Thu Sep 6 20:11:25 2007 for Pylon Application Platform by  doxygen 1.5.1