Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:44

0001 // @(#)root/base:$Id$
0002 // Author: Rene Brun   29/12/99
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2022, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TExec
0013 #define ROOT_TExec
0014 
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // TExec                                                                //
0019 //                                                                      //
0020 // A TExec object can execute a CLING command.                           //
0021 //                                                                      //
0022 //////////////////////////////////////////////////////////////////////////
0023 
0024 #include "TNamed.h"
0025 
0026 class TExec : public TNamed {
0027 
0028 public:
0029 
0030    TExec();
0031    TExec(const char *name, const char *command);
0032    TExec(const TExec &text);
0033    virtual ~TExec();
0034    virtual void     Exec(const char *command = "");
0035    void             Paint(Option_t *option="") override;
0036    void             SavePrimitive(std::ostream &out, Option_t *option = "") override;
0037    virtual void     SetAction(const char *action) { SetTitle(action); }
0038 
0039    ClassDefOverride(TExec,1);  //To execute a CLING command
0040 };
0041 
0042 #endif