Logo ROOT  
Reference Guide
TExec.h
Go to the documentation of this file.
1 // @(#)root/base:$Id$
2 // Author: Rene Brun 29/12/99
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 #ifndef ROOT_TExec
13 #define ROOT_TExec
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TExec //
19 // //
20 // A TExec object can execute a CINT command. //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 
25 #include "TNamed.h"
26 
27 
28 class TExec : public TNamed {
29 
30 public:
31 
32  TExec();
33  TExec(const char *name, const char *command);
34  TExec(const TExec &text);
35  virtual ~TExec();
36  virtual void Exec(const char *command="");
37  virtual void Paint(Option_t *option="");
38  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
39  virtual void SetAction(const char *action) {SetTitle(action);}
40 
41  ClassDef(TExec,1); //To execute a CINT command
42 };
43 
44 #endif
45 
TExec::Exec
virtual void Exec(const char *command="")
Execute the command referenced by this object.
Definition: TExec.cxx:144
TExec::~TExec
virtual ~TExec()
Exec default destructor.
Definition: TExec.cxx:121
Option_t
const char Option_t
Definition: RtypesCore.h:66
TNamed.h
text
TText * text
Definition: entrylist_figure1.C:10
TExec
TExec is a utility class that can be used to execute a C++ command when some event happens in a pad.
Definition: TExec.h:28
TExec::Paint
virtual void Paint(Option_t *option="")
Execute the command referenced by this object.
Definition: TExec.cxx:162
TNamed
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
TExec::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TExec.cxx:170
TNamed::SetTitle
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Definition: TNamed.cxx:164
TExec::SetAction
virtual void SetAction(const char *action)
Definition: TExec.h:39
TExec::TExec
TExec()
Exec default constructor.
Definition: TExec.cxx:106
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
name
char name[80]
Definition: TGX11.cxx:110