Logo Search packages:      
Sourcecode: ddd version File versions  Download package

Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

TTYAgent Class Reference

Inheritance diagram for TTYAgent:
Inheritance graph
Collaboration diagram for TTYAgent:
Collaboration graph

List of all members.

Public Member Functions

void _hangup ()
void _kill (int sig=SIGKILL)
void _terminate ()
virtual void abort ()
void addHandler (unsigned type, AgentHandlerProc proc, void *client_data=0)
void addHandler (const Agent &a)
XtAppContext appContext () const
bool beingTerminated () const
bool block_tty_input (bool state)
bool block_tty_input () const
virtual void commit ()
virtual Agentdup () const
FILE * errorfp () const
int flush ()
int & hangupTimeOut ()
int hangupTimeOut () const
bool hasHandler (unsigned type) const
void hasNewStatus (int status)
FILE * inputfp () const
int killTimeOut () const
int & killTimeOut ()
int lastStatus () const
const stringmaster_tty () const
string name () const
virtual bool OK () const
FILE * outputfp () const
const stringpath () const
pid_t pid () const
void removeAllHandlers (unsigned type)
void removeAllHandlers ()
void removeHandler (unsigned type, AgentHandlerProc proc, void *client_data=0)
bool running ()
virtual void shutdown ()
const stringslave_tty () const
const char * slave_tty_c () const
virtual void start ()
virtual void terminate (bool onExit=false)
int terminateTimeOut () const
int & terminateTimeOut ()
 TTYAgent (XtAppContext app_context, const string &pth, unsigned nTypes=TTYAgent_NTypes)
 TTYAgent (XtAppContext app_context, bool dummy, unsigned nTypes=TTYAgent_NTypes)
 TTYAgent (XtAppContext app_context, FILE *in=stdin, FILE *out=stdout, FILE *err=0, unsigned nTypes=TTYAgent_NTypes)
 TTYAgent (const TTYAgent &tty)
virtual void wait ()
virtual int write (const char *data, int length)

Static Public Attributes

static AgentManager runningAgents

Protected Member Functions

virtual int _readError (const char *&data)
virtual int _readInput (const char *&data)
void addDefaultHandler (unsigned type)
bool blocking_tty (FILE *fp) const
void callHandlers (int type, void *call_data=0)
virtual void callHandlersWhenIdle (int type, void *call_data=0)
void clearHandlers ()
virtual void closeChannel (FILE *fp)
virtual void dispatch (int type, const char *data, int length)
virtual void errorEOF ()
virtual void executeChild ()
AsyncAgentHandler handler (unsigned type) const
void handlerChange ()
XtInputId id (unsigned type) const
virtual void inputEOF ()
bool inputIsTerminal () const
virtual bool isIdle ()
bool onTerminal () const
virtual int open_tty (const char *tty, int flags=O_RDWR)
bool outputIsTerminal () const
virtual void readAndDispatchError (bool expectEOF=false)
virtual void readAndDispatchInput (bool expectEOF=false)
int readError (const char *&data)
int readInput (const char *&data)
virtual void restoreParentIO ()
AsyncAgentHandler setHandler (unsigned type, AsyncAgentHandler handler=0)
virtual int setupChildCommunication ()
virtual int setupCommunication ()
virtual int setupParentCommunication ()
virtual bool tty_ok (const char *tty)
virtual void waitToTerminate ()

Static Protected Member Functions

static void defaultHandler (Agent *source, void *client_data, void *call_data)

Protected Attributes

FILE * _errorfp
FILE * _inputfp
FILE * _outputfp
string _path
HandlerList handlers

Private Member Functions

void open_master ()
void open_slave ()

Private Attributes

string _master_tty
string _slave_tty
int master
bool push
int slave

Detailed Description

Definition at line 39 of file TTYAgent.h.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index