FShGetLine Class Reference

#include <FShGetLine.h>

Inherits GetLine.

Inheritance diagram for FShGetLine:

Inheritance graph
[legend]
Collaboration diagram for FShGetLine:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FShGetLine (FSh *shell)
virtual ~FShGetLine ()

Protected Member Functions

virtual int onTab (char *buffer, const int promptWidth, int *cursorLoc, int *i)
virtual int onOutput (const char *buf)
virtual int onPutc (const char c)
virtual int onPuts (const char *buf)
virtual unsigned int onStrlen (const char *str)

Private Attributes

FSh_shell
TcpConnection_connection
Forth * _forth

Detailed Description

Definition at line 18 of file FShGetLine.h.


Constructor & Destructor Documentation

FShGetLine::FShGetLine ( FSh shell  ) 

Definition at line 19 of file FShGetLine.cpp.

References FSh::_connection, _connection, _forth, _shell, CSTRING(), ERROR, ERROR_BACKTRACE(), FAILED(), Support::failure(), MSG_NULL_POINTER, GetLine::setPrompt(), and Connection::writeStr().

FShGetLine::~FShGetLine (  )  [virtual]

Definition at line 50 of file FShGetLine.cpp.


Member Function Documentation

int FShGetLine::onTab ( char *  buffer,
const int  promptWidth,
int *  cursorLoc,
int *  i 
) [protected, virtual]

Reimplemented from GetLine.

Definition at line 56 of file FShGetLine.cpp.

References _connection, _forth, CSTRING(), String::eol(), ERROR_BACKTRACE(), FAILED(), FSH_GETLINE_BEEP, GL_LIMIT_BUFFER_SIZE, String::intersection(), LIMIT_FORTH_WORDS_PER_LINE, NamedObject::names(), OK, GetLine::prompt(), Connection::write(), and Connection::writeStr().

int FShGetLine::onOutput ( const char *  buf  )  [protected, virtual]

Implements GetLine.

Definition at line 134 of file FShGetLine.cpp.

References _connection, _forth, _shell, CORE(), CSTRING(), String::eol(), ERROR_BACKTRACE(), FAILED(), GetLine::kill(), OK, GetLine::setPrompt(), and Connection::writeStr().

int FShGetLine::onPutc ( const char  c  )  [protected, virtual]

Implements GetLine.

Definition at line 156 of file FShGetLine.cpp.

References _connection, ERROR_BACKTRACE(), FAILED(), OK, and Connection::write().

int FShGetLine::onPuts ( const char *  buf  )  [protected, virtual]

Implements GetLine.

Definition at line 172 of file FShGetLine.cpp.

References _connection, ERROR_BACKTRACE(), FAILED(), OK, and Connection::write().

unsigned int FShGetLine::onStrlen ( const char *  str  )  [protected, virtual]

Reimplemented from GetLine.

Definition at line 187 of file FShGetLine.cpp.

References String::colorLength().


Member Data Documentation

FSh* FShGetLine::_shell [private]

Definition at line 38 of file FShGetLine.h.

Referenced by FShGetLine(), and onOutput().

TcpConnection* FShGetLine::_connection [private]

Definition at line 39 of file FShGetLine.h.

Referenced by FShGetLine(), onOutput(), onPutc(), onPuts(), and onTab().

Forth* FShGetLine::_forth [private]

Definition at line 40 of file FShGetLine.h.

Referenced by FShGetLine(), onOutput(), and onTab().


The documentation for this class was generated from the following files:
Generated on Thu Sep 6 20:13:39 2007 for Pylon Application Platform by  doxygen 1.5.1