Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGI Class Reference

This class is used for interfacing to DSO loaded TGI interpreters. TGI interpreter module. More...

#include <bayonne.h>

List of all members.

Public Methods

virtual void Script (char *cmd, char **args)
 Check command for interpreter and, if is, execute it. More...

virtual int Parse (int fd, int port, char *cmd)
 Execute a first stage interpreter, uses local functions. More...


Protected Methods

 TGI ()
virtual bool getExtension (char *ext)
 Check a file extension to see if it belongs to a first stage tgi script interpreter (avoids second fork). More...


Friends

void getInterp (char *cmd, char **args)
TGI* getInterp (char *cmd)


Detailed Description

This class is used for interfacing to DSO loaded TGI interpreters. TGI interpreter module.

Author(s):
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

TGI::TGI ( ) [protected]
 


Member Function Documentation

int TGI::Parse ( int fd,
int port,
char * cmd ) [inline, virtual]
 

Execute a first stage interpreter, uses local functions.

Returns:
shell exit code.
Parameters:
fifo   file descriptor.
port   number.
unparsed   command string.

void TGI::Script ( char * cmd,
char ** args ) [inline, virtual]
 

Check command for interpreter and, if is, execute it.

If so it doesn't return but uses "exit". This is a "second" stage tgi mod interface and is effective for single session interpreter libraries.

Parameters:
script   name resolved.
argument   list.

bool TGI::getExtension ( char * ext ) [inline, protected, virtual]
 

Check a file extension to see if it belongs to a first stage tgi script interpreter (avoids second fork).

Returns:
true if claimed.
Parameters:
extension.  


Friends And Related Function Documentation

TGI* getInterp ( char * cmd ) [friend]
 

void getInterp ( char * cmd,
char ** args ) [friend]
 


The documentation for this class was generated from the following file:
Generated at Thu May 31 11:43:29 2001 for Bayonne by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000