QwAnalysis
QwRint Class Reference

A ROOT command line interface. More...

#include <QwRint.h>

Inherits TRint.

+ Collaboration diagram for QwRint:

Public Member Functions

 QwRint (const char *appClassName, int *argc, char **argv, void *options=0, int numOptions=0, bool noLogo=kFALSE)
 Constructor. More...
 
virtual ~QwRint ()
 Destructor. More...
 

Static Protected Attributes

static QwRintfExists = NULL
 Check whether interface already existing. More...
 

Detailed Description

A ROOT command line interface.

The QwRint class implements a ROOT command line interface. It inherits from the ROOT interactive C++ interpreter TRint. All functionality available in ROOT is available in this interface. In particular, all histograms that are defined in memory or in a ROOT file are accessible under the path "/root/ROOT memory", while they are being filled. All Qweak specific class structures are available in an interactive mode.

Definition at line 25 of file QwRint.h.

Constructor & Destructor Documentation

QwRint::QwRint ( const char *  appClassName,
int *  argc,
char **  argv,
void *  options = 0,
int  numOptions = 0,
bool  noLogo = kFALSE 
)

Constructor.

Definition at line 18 of file QwRint.cc.

References fExists.

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 }
R__EXTERN class QwRint * gQwRint
Definition: QwRint.h:9
static QwRint * fExists
Check whether interface already existing.
Definition: QwRint.h:29
QwRint::~QwRint ( )
virtual

Destructor.

Definition at line 32 of file QwRint.cc.

References fExists.

33 {
34  // Reset point to self
35  if (fExists == this)
36  fExists = NULL;
37 }
static QwRint * fExists
Check whether interface already existing.
Definition: QwRint.h:29

Field Documentation

QwRint * QwRint::fExists = NULL
staticprotected

Check whether interface already existing.

Definition at line 29 of file QwRint.h.

Referenced by QwRint(), and ~QwRint().


The documentation for this class was generated from the following files: