42 TMacro(
const char *
name,
const char *title=
"");
57 virtual void SetParams(
const char *params =
nullptr);
int Int_t
Signed integer 4 bytes (int).
long Longptr_t
Integer large enough to hold a pointer (platform-dependent).
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
#define ClassDefOverride(name, id)
Using a TBrowser one can browse all ROOT objects.
This code implements the MD5 message-digest algorithm.
virtual TMD5 * Checksum()
Returns checksum of the current content.
void Print(Option_t *option="") const override
Print contents of this macro.
virtual Bool_t Load() const
Load the macro into the interpreter.
virtual ~TMacro()
Delete this macro.
virtual void SetParams(const char *params=nullptr)
Set default parameters to execute this macro.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save macro source on stream out.
virtual TObjString * AddLine(const char *text)
Add line with text in the list of lines of this macro.
virtual Int_t ReadFile(const char *filename)
Read lines in filename in this macro.
void SaveSource(FILE *fp)
Save macro source in file pointer fp.
virtual Longptr_t Exec(const char *params=nullptr, Int_t *error=nullptr)
Execute this macro with params, if params is 0, default parameters (set via SetParams) are used.
TMacro()
Create an empty macro, use AddLine() or ReadFile() to fill this macro.
TMacro & operator=(const TMacro &)
Copy constructor.
TList * GetListOfLines() const
void Paint(Option_t *option="") override
Execute this macro (called by TPad::Paint).
void Browse(TBrowser *b) override
When clicking in the browser, the following action is performed on this macro, depending the content ...
virtual TObjString * GetLineWith(const char *text) const
Search the first line containing text.
Collectable string class.