TRint


class description - source file - inheritance tree

class TRint : public TApplication


    public:
TRint TRint(char* appClassName, int* argc, char** argv, void* options = NULL, int numOptions = 0) TRint TRint(TRint&) virtual void ~TRint() TClass* Class() virtual char* GetPrompt() virtual void HandleTermInput() void Interrupt() virtual TClass* IsA() virtual void PrintLogo() virtual void Run(Bool_t retrn = kFALSE) virtual const char* SetPrompt(char* newPrompt) 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 static 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(char *appClassName, int *argc, char **argv, void *options, int numOptions) : 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 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()
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
              TRint TRint(TRint&)


Author: Rene Brun 17/02/95
Last update: 2.22/05 06/06/99 11.36.16 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


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.