00001 // @(#)root/base:$Id: TExec.h 20877 2007-11-19 11:17:07Z rdm $ 00002 // Author: Rene Brun 29/12/99 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TExec 00013 #define ROOT_TExec 00014 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TExec // 00019 // // 00020 // A TExec object can execute a CINT command. // 00021 // // 00022 ////////////////////////////////////////////////////////////////////////// 00023 00024 00025 #ifndef ROOT_TNamed 00026 #include "TNamed.h" 00027 #endif 00028 00029 00030 class TExec : public TNamed { 00031 00032 public: 00033 00034 TExec(); 00035 TExec(const char *name, const char *command); 00036 TExec(const TExec &text); 00037 virtual ~TExec(); 00038 virtual void Exec(const char *command=""); 00039 virtual void Paint(Option_t *option=""); 00040 virtual void SavePrimitive(ostream &out, Option_t *option = ""); 00041 virtual void SetAction(const char *action) {SetTitle(action);} 00042 00043 ClassDef(TExec,1); //To execute a CINT command 00044 }; 00045 00046 #endif 00047