Logo ROOT   6.12/07
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 
const char Option_t
Definition: RtypesCore.h:62
virtual ~TExec()
Exec default destructor.
Definition: TExec.cxx:120
#define ClassDef(name, id)
Definition: Rtypes.h:320
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TExec.cxx:169
virtual void Paint(Option_t *option="")
Execute the command referenced by this object.
Definition: TExec.cxx:161
virtual void SetAction(const char *action)
Definition: TExec.h:39
TText * text
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()
Exec default constructor.
Definition: TExec.cxx:105
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Definition: TNamed.cxx:164
char name[80]
Definition: TGX11.cxx:109
virtual void Exec(const char *command="")
Execute the command referenced by this object.
Definition: TExec.cxx:143