ROOT  6.06/09
Reference Guide
TApplicationImp.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Fons Rademakers 22/12/95
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 
13 #ifndef ROOT_TApplicationImp
14 #define ROOT_TApplicationImp
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TApplicationImp //
19 // //
20 // ABC describing GUI independent application implementation protocol. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_TString
25 #include "TString.h"
26 #endif
27 
28 class TGWin32Command;
29 
30 
32 
33 protected:
34  TString fApplicationName; // application name
35 
36 public:
37  TApplicationImp(): fApplicationName() { }
38  TApplicationImp(const char *appClassName, int *argc, char **argv);
39  virtual ~TApplicationImp() { }
40 
41  virtual const char *ApplicationName() const { return fApplicationName.Data(); }
42  virtual void Show() { }
43  virtual void Hide() { }
44  virtual void Iconify() { }
45  virtual Bool_t IsCmdThread() { return kTRUE; } // by default (for UNIX) ROOT is a single thread application
46  virtual void Init() { }
47  virtual void Open() { }
48  virtual void Raise() { }
49  virtual void Lower() { }
50  virtual Int_t ExecCommand(TGWin32Command *code, Bool_t synch);
51 
52  ClassDef(TApplicationImp,0) //ABC describing application protocol
53 };
54 
55 inline TApplicationImp::TApplicationImp(const char *appClassName, int *, char **)
56  : fApplicationName(appClassName) { }
57 inline Int_t TApplicationImp::ExecCommand(TGWin32Command *, Bool_t) { return 0; }
58 
59 #endif
virtual void Raise()
virtual void Open()
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual void Iconify()
const char * Data() const
Definition: TString.h:349
ABC describing GUI independent application implementation protocol.
virtual void Show()
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual void Lower()
TString fApplicationName
virtual const char * ApplicationName() const
virtual void Init()
virtual void Hide()
virtual Bool_t IsCmdThread()
virtual Int_t ExecCommand(TGWin32Command *code, Bool_t synch)
const Bool_t kTRUE
Definition: Rtypes.h:91
virtual ~TApplicationImp()