Logo ROOT  
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
19class TEveMacro : public TMacro
20{
21protected:
22
23public:
24 TEveMacro();
25 TEveMacro(const TEveMacro&);
26 TEveMacro(const char* name);
27 virtual ~TEveMacro() {}
28
29 virtual Longptr_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
int Int_t
Definition: RtypesCore.h:45
long Longptr_t
Definition: RtypesCore.h:82
#define ClassDef(name, id)
Definition: Rtypes.h:335
char name[80]
Definition: TGX11.cxx:110
Sub-class of TMacro, overriding Exec to unload the previous version and cleanup after the execution.
Definition: TEveMacro.h:20
void ResetRoot()
Call gROOT->Reset() via interpreter.
Definition: TEveMacro.cxx:118
virtual ~TEveMacro()
Definition: TEveMacro.h:27
virtual Longptr_t Exec(const char *params="0", Int_t *error=0)
Execute the macro.
Definition: TEveMacro.cxx:62
TEveMacro()
Default constructor.
Definition: TEveMacro.cxx:30
Class supporting a collection of lines with C++ code.
Definition: TMacro.h:31