Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
HtmlObject.h
1/*
2 * HalHTMLObject.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_OBJECT_H_
10#define HAL_FEATURES_IO_HTML_OBJECT_H_
11#include <TObject.h>
12#include <TString.h>
13namespace Hal {
14 class HtmlObject : public TObject {
15 TString fClass;
16 TString fID;
17 TString fStyle;
18 TString fContent;
19 TString fOtherAttribs;
20
21 protected:
22 TString GetClass() const { return fClass; };
23 TString GetId() const { return fID; };
24 TString GetStyle() const { return fStyle; };
25 TString GetProperties() const;
31 TString GetDefaultString(TString tag) const;
32
33 public:
34 HtmlObject();
35 HtmlObject(TString id, TString className, TString style);
40 void SetClass(TString className) { fClass = className; };
44 virtual void SetDefaultClass() {};
49 void SetId(TString id) { fID = id; };
54 void SetStyle(TString style) { fStyle = style; };
59 virtual void AddContent(const HtmlObject& obj);
60 void SetStringContent(TString content) { fContent = content; };
61 TString GetContent() const { return fContent; };
62 virtual void AddStringContent(TString text) { fContent = fContent + text; };
63 void AddAtrib(TString name, TString value);
65 virtual TString ToString() const = 0;
66 virtual ~HtmlObject();
67 HtmlObject(const HtmlObject& other);
68 HtmlObject& operator=(const HtmlObject& other);
69 ClassDef(HtmlObject, 1)
70 };
71} // namespace Hal
72#endif /* HAL_FEATURES_IO_HTML_OBJECT_H_ */
TString GetDefaultString(TString tag) const
virtual void SetDefaultClass()
Definition HtmlObject.h:44
void SetClass(TString className)
Definition HtmlObject.h:40
virtual void AddContent(const HtmlObject &obj)
void SetStyle(TString style)
Definition HtmlObject.h:54
void SetId(TString id)
Definition HtmlObject.h:49
virtual TString ToString() const =0