Warning, file /include/root/TMacro.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TMacro
0013 #define ROOT_TMacro
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "TNamed.h"
0025
0026 class TList;
0027 class TObjString;
0028 class TMD5;
0029
0030
0031 class TMacro : public TNamed {
0032
0033 protected:
0034 TList *fLines;
0035 TString fParams;
0036
0037 void SaveSource(FILE *fp);
0038
0039 public:
0040 TMacro();
0041 TMacro(const TMacro&);
0042 TMacro(const char *name, const char *title="");
0043 virtual ~TMacro();
0044 TMacro& operator=(const TMacro&);
0045 virtual TObjString *AddLine(const char *text);
0046 void Browse(TBrowser *b) override;
0047 virtual TMD5 *Checksum();
0048 virtual TObjString *GetLineWith(const char *text) const;
0049 virtual Bool_t Load() const;
0050 virtual Longptr_t Exec(const char *params = nullptr, Int_t *error = nullptr);
0051 TList *GetListOfLines() const {return fLines;}
0052 void Paint(Option_t *option="") override;
0053 void Print(Option_t *option="") const override;
0054 virtual Int_t ReadFile(const char *filename);
0055 virtual void SaveSource(const char *filename);
0056 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
0057 virtual void SetParams(const char *params = nullptr);
0058
0059 ClassDefOverride(TMacro,1)
0060 };
0061
0062 #endif