TApplication


class description - source file - inheritance tree

class TApplication : public TObject


    protected:
TApplication TApplication() void Help(Text_t* line) void InitializeColors() void SetReturnFromRun(Bool_t ret) void SetSignalHandler(TSignalHandler* sh) public:
TApplication TApplication(char* appClassName, int* argc, char** argv, void* options = 0, int numOptions = 0) TApplication TApplication(TApplication&) virtual void ~TApplication() virtual char* ApplicationName() int Argc() char** Argv() char* Argv(int index) TClass* Class() void ClearInputFiles() void CreateApplication() virtual TApplicationImp* GetApplicationImp() const char* GetIdleCommand() virtual void GetOptions(int* argc, char** argv) TSignalHandler* GetSignalHandler() virtual void HandleIdleTimer() virtual void HandleTermInput() virtual void Hide() virtual void Iconify() virtual void Init() TObjArray* InputFiles() virtual TClass* IsA() virtual Bool_t IsCmdThread() virtual void Lower() Bool_t NoLogOpt() virtual void Open() virtual void ProcessFile(Text_t* line) virtual void ProcessLine(Text_t* line) Bool_t QuitOpt() virtual void Raise() virtual void RemoveIdleTimer() Bool_t ReturnFromRun() virtual void Run(Bool_t retrn = kFALSE) virtual void SetIdleTimer(UInt_t idleTimeInSec, Text_t* command) virtual void Show() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void StartIdleing() virtual void StopIdleing() virtual void Streamer(TBuffer& b) virtual void Terminate(int status = 0)

Data Members

private:
Bool_t fReturnFromRun When true return from Run() int fArgc Number of command line arguments char** fArgv Command line arguments TApplicationImp* fAppImp Window system specific application implementation Bool_t fNoLog Do not process logon and logoff macros Bool_t fQuit Exit after having processed input files TObjArray* fFiles Array of input files (TObjString's) char* fIdleCommand Command to execute while application is idle TTimer* fIdleTimer Idle timer TSignalHandler* fSigHandler Interrupt handler


See also

TProofServ, TRint

Class Description

                                                                      
 TApplication                                                         
                                                                      
 This class creates the ROOT Application Environment that interfaces  
 to the windowing system eventloop and eventhandlers.                 
 This class must be instantiated exactly once in any given            
 application. Normally the specific application class inherits from   
 TApplication (see TRint).                                            
                                                                      


TApplication(const char *appClassName, int *argc, char **argv, void *options, int numOptions)
 Create an application environment. The application environment
 provides an interface to the Window Manager functionality and eventloop
 (be it X, Windoze, Mac or Be).

~TApplication()
 TApplication dtor.

void ClearInputFiles()
 Clear list containing macro files passed as program arguments.
 This method is called from TRint::Run() to ensure that the macro
 files are only executed the first time Run() is called.

void GetOptions(int *argc, char **argv)
 Get and handle command line options.

void HandleIdleTimer()
 Handle idle timeout. When this timer expires the registered idle command
 will be executed by this routine.

void Help(const Text_t *line)
 Print help on interpreter.

void InitializeColors()
 Initialize colors used by the TCanvas based graphics (via TColor objects).
 This method should be called before the ApplicationImp is created (which
 initializes the GUI colors).

void ProcessLine(const Text_t *line)
 Process a single command line, either a C++ statement or an interpreter
 command starting with a ".".

void ProcessFile(const Text_t *name)
 Process a file containing a C++ macro.

void Run(Bool_t retrn)
 Main application eventloop. Calls system dependent eventloop via gSystem.

void SetIdleTimer(UInt_t idleTimeInSec, const Text_t *command)
 Set the command to be executed after the system has been idle for
 idleTimeInSec seconds. Normally called via TROOT::Idle(...).

void RemoveIdleTimer()
 Remove idle timer. Normally called via TROOT::Idle(0).

void StartIdleing()
 Call when system starts idleing.

void StopIdleing()
 Call when system stops idleing.

void Terminate(int status)
 Terminate the application by call TSystem::Exit() unless application has
 been told to return from Run(), by a call to SetReturnFromRun().

void CreateApplication()
 Static function used to create a default application environment.



Inline Functions


                    void SetReturnFromRun(Bool_t ret)
                    void SetSignalHandler(TSignalHandler* sh)
            TApplication TApplication(char* appClassName, int* argc, char** argv, void* options = 0, int numOptions = 0)
         TSignalHandler* GetSignalHandler()
                    void HandleTermInput()
                    void Init()
             const char* GetIdleCommand()
                   char* ApplicationName()
                    void Show()
                    void Hide()
        TApplicationImp* GetApplicationImp()
                    void Iconify()
                  Bool_t IsCmdThread()
                    void Open()
                    void Raise()
                    void Lower()
                     int Argc()
                  char** Argv()
                   char* Argv(int index)
                  Bool_t NoLogOpt()
                  Bool_t QuitOpt()
              TObjArray* InputFiles()
                  Bool_t ReturnFromRun()
                 TClass* Class()
                 TClass* IsA()
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
            TApplication TApplication(TApplication&)


Author: Fons Rademakers 22/12/95
Last update: 2.22/09 10/07/99 21.29.51 by Rene Brun
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.