QwAnalysis
QwRint.cc
Go to the documentation of this file.
1 #include "QwRint.h"
2 
3 // Standard C and C++ headers
4 #include <iostream>
5 #include <cstdlib>
6 
7 // ROOT headers
8 #include <TROOT.h>
9 
10 // Global pointers
11 QwRint* gQwRint = NULL;
12 
13 // Pointer to self
14 QwRint* QwRint::fExists = NULL;
15 
16 
17 //--------------------------------------------------------------------------
18 QwRint::QwRint (const char* appClassName, int* argc, char** argv,
19  void* options, int numOptions, bool noLogo)
20 : TRint (appClassName, argc, argv, options, numOptions, noLogo)
21 {
22  gQwRint = this;
23 
24  // Qw-Root command prompt
25  SetPrompt("Qw-Root [%d] ");
26 
27  // Pointer to self
28  fExists = this;
29 }
30 
31 //---------------------------------------------------------------------------
33 {
34  // Reset point to self
35  if (fExists == this)
36  fExists = NULL;
37 }
R__EXTERN class QwRint * gQwRint
Definition: QwRint.h:9
static QwRint * fExists
Check whether interface already existing.
Definition: QwRint.h:29
QwRint(const char *appClassName, int *argc, char **argv, void *options=0, int numOptions=0, bool noLogo=kFALSE)
Constructor.
Definition: QwRint.cc:18
virtual ~QwRint()
Destructor.
Definition: QwRint.cc:32
A ROOT command line interface.
Definition: QwRint.h:25