Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
HtmlCore.h
1/*
2 * HalHTML.h
3 *
4 * Created on: 30-04-2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HALHTML_H_
10#define HALHTML_H_
11
12#include <TObject.h>
13#include <TString.h>
14
18class TH1;
19class TVector2;
20class TGraph;
21namespace Hal {
22 class HtmlTable;
23 class HtmlCore : public TObject {
24 private:
25 static HtmlCore* fgInstance;
26 static TString fMainDir;
27 static Bool_t fgOnline;
28 static TString GetLinkVector(TVector2* vect);
29 static TString GetLinkTH1(TH1* h, Int_t no, TString path);
30 static TString GetLinkGraph(TGraph* h, Int_t no, TString path);
31 static TString GetLinkList(TList* h, Int_t no, TString path);
32
33 public:
37 HtmlCore();
42 static HtmlCore* Instance();
51 static TString GetJsDiv(TString root_file, TString object_name, TString draw_opt = "colz", TString draw_div_name = "drawing");
58 static TString GetUrl(TString adress, TString text);
69 static TString ClickablePic(TString id_name, TObjArray* strings, Int_t width = 796, Int_t height = 572);
77 static TString GetLinkToHistogram(TH1* h, Int_t no, TString path);
83 static TString GetRelativePath(TString path);
90 static TString GetHideButtonTable(TString tableName, TString text);
97 static TString GetHideButtonRow(TString listName, TString text);
103 static void FixAddress(TString& address);
108 static Bool_t IsOnline() { return fgOnline; }
114 static TString CheckBr(TString text);
115 static TString GetLastDir(TString name, Int_t cut = 1);
120 static void SetOnline(Bool_t online) { fgOnline = online; };
132 static void SetMainDir(TString name);
138 static void SetMainDirAndExtract(TString name);
139 static void ResetMainDir() { fMainDir = ""; };
146 static void CopyCss(TString dir, TString css_name = "table.css");
151 static void CopyJs(TString dir);
159 static TString HTMLExtract(TObject* obj, Int_t no, TString dir = "");
168 static void HTMLExtractIntoTable(TObject* obj, Int_t no, HtmlTable& table, TString dir = "", TString rel_dir = "");
175 virtual Bool_t CanBeTableElement(TObject* obj);
176 virtual ~HtmlCore() {};
177 ClassDef(HtmlCore, 1)
178 };
179} // namespace Hal
180#endif
static TString GetUrl(TString adress, TString text)
Definition HtmlCore.cxx:164
static void HTMLExtractIntoTable(TObject *obj, Int_t no, HtmlTable &table, TString dir="", TString rel_dir="")
Definition HtmlCore.cxx:110
static TString GetRelativePath(TString path)
Definition HtmlCore.cxx:184
static void CopyCss(TString dir, TString css_name="table.css")
Definition HtmlCore.cxx:33
static void SetMainDirAndExtract(TString name)
Definition HtmlCore.cxx:95
static TString GetHideButtonTable(TString tableName, TString text)
Definition HtmlCore.cxx:249
static void SetMainDir(TString name)
Definition HtmlCore.cxx:89
static TString ClickablePic(TString id_name, TObjArray *strings, Int_t width=796, Int_t height=572)
Definition HtmlCore.cxx:166
static TString GetJsDiv(TString root_file, TString object_name, TString draw_opt="colz", TString draw_div_name="drawing")
Definition HtmlCore.cxx:226
static TString HTMLExtract(TObject *obj, Int_t no, TString dir="")
Definition HtmlCore.cxx:282
static void FixAddress(TString &address)
Definition HtmlCore.cxx:101
static void SetOnline(Bool_t online)
Definition HtmlCore.h:120
static Bool_t IsOnline()
Definition HtmlCore.h:108
static void CopyJs(TString dir)
Definition HtmlCore.cxx:41
static TString GetHideButtonRow(TString listName, TString text)
Definition HtmlCore.cxx:253
virtual Bool_t CanBeTableElement(TObject *obj)
Definition HtmlCore.cxx:162
static TString GetLinkToHistogram(TH1 *h, Int_t no, TString path)
Definition HtmlCore.cxx:257
static HtmlCore * Instance()
Definition HtmlCore.cxx:81
static TString CheckBr(TString text)
Definition HtmlCore.cxx:202