TRint


class description - source file - inheritance tree

class TRint : public TApplication

    private:
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) void StreamerNVirtual(TBuffer& b) virtual void Terminate(int status)

Data Members

    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 protected:
public:

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, unless the -q
 command line option was specfied in which case the program terminates.
 When retrn is true this method returns even when -q was specified.

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 default prompt is "root [%d] ". The maximum length of
 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)
               void StreamerNVirtual(TBuffer& b)
              TRint TRint(TRint&)


Author: Rene Brun 17/02/95
Last update: root/rint:$Name: $:$Id: TRint.cxx,v 1.11 2001/06/30 13:18:14 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.