1 #ifndef BIBPARSER_SRC_HTMLGENERATOR_HPP_
2 #define BIBPARSER_SRC_HTMLGENERATOR_HPP_
5 #include <unordered_map>
32 [[noreturn]]
auto fail(
const std::string &message,
const std::string &type) ->
void override;
34 auto write() -> std::string
override;
38 )
const noexcept -> void;
53 template<HtmlGenerator::HtmlTag>
inline char const *
const name =
"Invalid HTML-Tag";
54 template<>
inline char const *
const name<HtmlGenerator::HtmlTag::TABLE> =
"table";
55 template<>
inline char const *
const name<HtmlGenerator::HtmlTag::TABLE_BODY> =
"tbody";
56 template<>
inline char const *
const name<HtmlGenerator::HtmlTag::TABLE_HEADING> =
"th";
57 template<>
inline char const *
const name<HtmlGenerator::HtmlTag::TABLE_ENTRY> =
"td";
58 template<>
inline char const *
const name<HtmlGenerator::HtmlTag::TABLE_ROW> =
"tr";
59 template<>
inline char const *
const name<HtmlGenerator::HtmlTag::LINK> =
"link";
60 template<>
inline char const *
const name<HtmlGenerator::HtmlTag::SCRIPT> =
"script";
61 template<>
inline char const *
const name<HtmlGenerator::HtmlTag::META> =
"meta";
62 template<>
inline char const *
const name<HtmlGenerator::HtmlTag::TITLE> =
"title";
63 template<>
inline char const *
const name<HtmlGenerator::HtmlTag::H1> =
"h1";
64 template<>
inline char const *
const name<HtmlGenerator::HtmlTag::H5> =
"h5";
65 template<>
inline char const *
const name<HtmlGenerator::HtmlTag::DIV> =
"div";
66 template<>
inline char const *
const name<HtmlGenerator::HtmlTag::BUTTON> =
"button";