Snorktracker
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Macros
Pages
tracker
HtmlTag.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2018 SFini
3
4
This program is free software: you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation, either version 3 of the License, or
7
(at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You should have received a copy of the GNU General Public License
15
along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
34
class
HtmlTag
35
{
36
protected
:
37
String &
html
;
38
String
tagName
;
39
40
public
:
41
HtmlTag
(String &h,
const
String &tn, String attributes =
""
);
42
~HtmlTag
();
43
};
44
45
/* ******************************************** */
46
48
HtmlTag::HtmlTag
(String &h,
const
String &tn, String attributes
/*= ""*/
)
49
: html(h)
50
, tagName(tn)
51
{
52
html
+= F(
"<"
);
53
html
+=
tagName
;
54
html
+= F(
" "
);
55
html
+= attributes;
56
html
+= F(
">"
);
57
}
58
60
HtmlTag::~HtmlTag
()
61
{
62
html
+= F(
"</"
);
63
html
+=
tagName
;
64
html
+= F(
">"
);
65
}
HtmlTag::~HtmlTag
~HtmlTag()
Definition:
HtmlTag.h:60
HtmlTag
Definition:
HtmlTag.h:34
HtmlTag::html
String & html
The html content.
Definition:
HtmlTag.h:37
HtmlTag::tagName
String tagName
The current element name.
Definition:
HtmlTag.h:38
HtmlTag::HtmlTag
HtmlTag(String &h, const String &tn, String attributes="")
Definition:
HtmlTag.h:48
Generated by
1.8.6