ROOT  6.06/09
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 #ifndef ROOT_TNamed
26 #include "TNamed.h"
27 #endif
28 
29 
30 class TExec : public TNamed {
31 
32 public:
33 
34  TExec();
35  TExec(const char *name, const char *command);
36  TExec(const TExec &text);
37  virtual ~TExec();
38  virtual void Exec(const char *command="");
39  virtual void Paint(Option_t *option="");
40  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
41  virtual void SetAction(const char *action) {SetTitle(action);}
42 
43  ClassDef(TExec,1); //To execute a CINT command
44 };
45 
46 #endif
47 
ClassDef(TExec, 1)
const char Option_t
Definition: RtypesCore.h:62
virtual ~TExec()
Exec default destructor.
Definition: TExec.cxx:118
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TExec.cxx:167
char * out
Definition: TBase64.cxx:29
virtual void Paint(Option_t *option="")
Execute the command referenced by this object.
Definition: TExec.cxx:159
virtual void SetAction(const char *action)
Definition: TExec.h:41
TText * text
#define name(a, b)
Definition: linkTestLib0.cpp:5
TExec is a utility class that can be used to execute a C++ command when some event happens in a pad...
Definition: TExec.h:30
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
Definition: TNamed.cxx:152
virtual void Exec(const char *command="")
Execute the command referenced by this object.
Definition: TExec.cxx:141