TRint


class description - source file - inheritance tree

class TRint : public TApplication


    public:
TRint TRint(const char* appClassName, int* argc, char** argv, void* options = 0, int numOptions = 0, Bool_t noLogo = kFALSE) TRint TRint(TRint&) virtual void ~TRint() static TClass* Class() virtual char* GetPrompt() virtual void HandleTermInput() void Interrupt() virtual TClass* IsA() const virtual void PrintLogo() virtual void Run(Bool_t retrn = kFALSE) virtual const char* SetPrompt(const char* newPrompt) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) virtual void Terminate(int status)

Data Members

private:
Int_t fNcmd Command history number char fPrompt[64] Interpreter prompt const char* fDefaultPrompt Default prompt: "root [%d] " Bool_t fInterrupt If true macro execution will be stopped

Class Description

                                                                      
 Rint                                                                 
                                                                      
 Rint is the ROOT Interactive Interface. It allows interactive access 
 to the ROOT system via the CINT C/C++ interpreter.                   
                                                                      


TRint(const char *appClassName, int *argc, char **argv, void *options, int numOptions, Bool_t noLogo) : TApplication(appClassName, argc, argv, options, numOptions)
 Create an application environment. The TRint environment provides an
 interface to the WM manager functionality and eventloop via inheritance
 of TApplication and in addition provides interactive access to
 the CINT C++ interpreter via the command line.

~TRint()

void Run(Bool_t retrn)
 Main application eventloop. First process files given on the command
 line and then go into the main application event loop.

void PrintLogo()
 Print the ROOT logo on standard output.

char* GetPrompt()
 Get prompt from interpreter. Either "root [n]" or "end with '}'".

const char* SetPrompt(const char *newPrompt)
 Set a new default prompt. It returns the previous prompt.
 The prompt may contain a %d which will be replaced by the commend
 number. The
 the prompt is 55 characters. To set the prompt in an interactive
 session do:
 root [0] ((TRint*)gROOT->GetApplication())->SetPrompt("aap> ")
 aap>

void HandleTermInput()
 Handle input coming from terminal.

void Terminate(int status)
 Terminate the application. Reset the terminal to sane mode and call
 the logoff macro defined via Rint.Logoff environment variable.



Inline Functions


               void Interrupt()
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
              TRint TRint(TRint&)


Author: Rene Brun 17/02/95
Last update: root/rint:$Name: $:$Id: TRint.cxx,v 1.3 2000/06/13 18:49:00 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.