#ifndef ROOT_TRint
#define ROOT_TRint
#ifndef ROOT_TApplication
#include "TApplication.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
class TFileHandler;
class TRint : public TApplication {
private:
Int_t fNcmd;
TString fDefaultPrompt;
char fPrompt[64];
Bool_t fInterrupt;
Bool_t fCaughtException;
TFileHandler *fInputHandler;
TRint(const TRint&);
TRint& operator=(const TRint&);
void ExecLogon();
Long_t ProcessRemote(const char *line, Int_t *error = 0);
Long_t ProcessLineNr(const char* filestem, const char *line, Int_t *error = 0);
public:
TRint(const char *appClassName, int *argc, char **argv,
void *options = 0, int numOptions = 0, Bool_t noLogo = kFALSE);
virtual ~TRint();
virtual char *GetPrompt();
virtual const char *SetPrompt(const char *newPrompt);
virtual void SetEchoMode(Bool_t mode);
virtual void HandleException(Int_t sig);
virtual Bool_t HandleTermInput();
virtual void PrintLogo(Bool_t lite = kFALSE);
virtual void Run(Bool_t retrn = kFALSE);
virtual void Terminate(int status);
void Interrupt() { fInterrupt = kTRUE; }
virtual Int_t TabCompletionHook(char *buf, int *pLoc, std::ostream& out);
ClassDef(TRint,0);
};
#endif