Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
HtmlFile.h
1/*
2 * HalHTMLFile.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 HAL_FEATURES_IO_HTML_FILE_H_
10#define HAL_FEATURES_IO_HTML_FILE_H_
11
12#include "HtmlObject.h"
13
14#include "HtmlCore.h"
15
16#include <TObject.h>
17#include <TString.h>
18
19namespace Hal {
20 class HtmlFile : public TObject {
21 protected:
22 TString fPath;
23 TString fRelativePath;
24 TString fDir;
25 TString fBody;
26 Bool_t fSaved;
27 const Bool_t fMainFile;
28
29 public:
38 HtmlFile(TString filename = "", Bool_t mainFile = kFALSE);
39 void AddContent(const HtmlObject& obj) { fBody = fBody + obj.ToString(); };
40 void AddStringContent(const TString str) { fBody = fBody + str; };
41 virtual void Save();
42 virtual ~HtmlFile();
43 ClassDef(HtmlFile, 1)
44 };
45} // namespace Hal
46#endif /* HAL_FEATURES_IO_HTML_FILE_H_ */
HtmlFile(TString filename="", Bool_t mainFile=kFALSE)
Definition HtmlFile.cxx:21
virtual TString ToString() const =0