Logo ROOT   6.12/07
Reference Guide
TEveMacro.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, 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 #ifndef ROOT_TEveMacro
13 #define ROOT_TEveMacro
14 
15 #include "TEveUtil.h"
16 
17 #include "TMacro.h"
18 
19 class TEveMacro : public TMacro
20 {
21 protected:
22 
23 public:
24  TEveMacro();
25  TEveMacro(const TEveMacro&);
26  TEveMacro(const char* name);
27  virtual ~TEveMacro() {}
28 
29  virtual Long_t Exec(const char* params = "0", Int_t* error = 0);
30 
31  void ResetRoot();
32 
33  ClassDef(TEveMacro, 1); // TMacro wrapper (attempting to fix issues with different macro loading and execution schemes).
34 };
35 
36 #endif
TEveMacro()
Default constructor.
Definition: TEveMacro.cxx:29
Class supporting a collection of lines with C++ code.
Definition: TMacro.h:31
int Int_t
Definition: RtypesCore.h:41
virtual Long_t Exec(const char *params="0", Int_t *error=0)
Execute the macro.
Definition: TEveMacro.cxx:62
Sub-class of TMacro, overriding Exec to unload the previous version and cleanup after the execution...
Definition: TEveMacro.h:19
#define ClassDef(name, id)
Definition: Rtypes.h:320
void ResetRoot()
Call gROOT->Reset() via interpreter.
Definition: TEveMacro.cxx:120
long Long_t
Definition: RtypesCore.h:50
virtual ~TEveMacro()
Definition: TEveMacro.h:27
char name[80]
Definition: TGX11.cxx:109