Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

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 Member Functions

virtual void script (char *cmd, char **args)
 Check command for interpreter and, if is, execute it.
virtual int parse (int fd, char port[64], char *cmd)
 Execute a first stage interpreter, uses local functions.

Protected Member Functions

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

Friends

__EXPORT void getInterp (char *cmd, char **args)
__EXPORT TGIgetInterp (char *cmd)


Detailed Description

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

Author:
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

TGI::TGI  )  [protected]
 


Member Function Documentation

virtual bool TGI::getExtension const 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. 

virtual int TGI::parse int  fd,
char  port[64],
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.

virtual 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.


Friends And Related Function Documentation

__EXPORT TGI* getInterp char *  cmd  )  [friend]
 

__EXPORT void getInterp char *  cmd,
char **  args
[friend]
 


The documentation for this class was generated from the following file:
Generated on Tue Sep 13 02:19:10 2005 for Bayonne by  doxygen 1.4.4