/usr/include/root/TMacro.h is in libroot-core-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | // @(#)root/base:$Id$
// Author: Rene Brun 16/08/2005
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TMacro
#define ROOT_TMacro
//////////////////////////////////////////////////////////////////////////
// //
// TMacro //
// //
// Class supporting a collection of lines with C++ code. //
// A TMacro can be executed, saved to a ROOT file, edited, etc. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
class TList;
class TObjString;
class TMD5;
class TMacro : public TNamed {
protected:
TList *fLines; //collection of lines
TString fParams; //default string of macro parameters
void SaveSource(FILE *fp);
public:
TMacro();
TMacro(const TMacro&);
TMacro(const char *name, const char *title="");
virtual ~TMacro();
TMacro& operator=(const TMacro&);
virtual TObjString *AddLine(const char *text);
virtual void Browse(TBrowser *b);
virtual TMD5 *Checksum();
virtual TObjString *GetLineWith(const char *text) const;
virtual Long_t Exec(const char *params = 0, Int_t* error = 0); //*MENU*
TList *GetListOfLines() const {return fLines;}
virtual void Paint(Option_t *option="");
virtual void Print(Option_t *option="") const; //*MENU*
virtual Int_t ReadFile(const char *filename);
virtual void SaveSource(const char *filename); //*MENU*
virtual void SavePrimitive(ostream &out, Option_t *option = "");
virtual void SetParams(const char *params=0); //*MENU*
ClassDef(TMacro,1) // Class supporting a collection of lines with C++ code.
};
#endif
|