/usr/include/root/TRint.h is in libroot-core-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | // @(#)root/rint:$Id$
// Author: Rene Brun 17/02/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TRint
#define ROOT_TRint
//////////////////////////////////////////////////////////////////////////
// //
// Rint //
// //
// Rint is the ROOT Interactive Interface. It allows interactive access //
// to the ROOT system via a C++ interpreter. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TApplication
#include "TApplication.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
class TFileHandler;
class TRint : public TApplication {
private:
Int_t fNcmd; // command history number
TString fDefaultPrompt; // default prompt: "root [%d] "
char fPrompt[64]; // interpreter prompt
Bool_t fInterrupt; // if true macro execution will be stopped
TFileHandler *fInputHandler; // terminal input handler
TRint(const TRint&); // not implemented
TRint& operator=(const TRint&); // not implemented
void ExecLogon();
Long_t ProcessRemote(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, ostream& out);
ClassDef(TRint,0); //ROOT Interactive Application Interface
};
#endif
|