Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
28class TExec : public TNamed {
29
30public:
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:66
#define ClassDef(name, id)
Definition Rtypes.h:325
char name[80]
Definition TGX11.cxx:110
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
virtual ~TExec()
Exec default destructor.
Definition TExec.cxx:121
virtual void Paint(Option_t *option="")
Execute the command referenced by this object.
Definition TExec.cxx:162
virtual void SetAction(const char *action)
Definition TExec.h:39
virtual void Exec(const char *command="")
Execute the command referenced by this object.
Definition TExec.cxx:144
TExec()
Exec default constructor.
Definition TExec.cxx:106
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition TExec.cxx:170
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Definition TNamed.cxx:164
TText * text