#include <HtmlGenerator.hpp>
|
enum | HtmlTag {
HtmlTag::TABLE,
HtmlTag::TABLE_BODY,
HtmlTag::TABLE_HEADING,
HtmlTag::TABLE_ENTRY,
HtmlTag::TABLE_ROW,
HtmlTag::LINK,
HtmlTag::SCRIPT,
HtmlTag::META,
HtmlTag::TITLE,
HtmlTag::H1,
HtmlTag::H5,
HtmlTag::DIV,
HtmlTag::BUTTON
} |
|
◆ HtmlTag
Enum that contains all known HTML tags.
Enumerator |
---|
TABLE | |
TABLE_BODY | |
TABLE_HEADING | |
TABLE_ENTRY | |
TABLE_ROW | |
LINK | |
SCRIPT | |
META | |
TITLE | |
H1 | |
H5 | |
DIV | |
BUTTON | |
Definition at line 16 of file HtmlGenerator.hpp.
◆ HtmlGenerator()
HtmlGenerator::HtmlGenerator |
( |
const std::vector< BibElement > & |
elements | ) |
|
|
explicit |
◆ appendCard()
auto HtmlGenerator::appendCard |
( |
CTML::Node & |
parent, |
|
|
const BibElement & |
element |
|
) |
| -> void |
|
staticnoexcept |
Creates A Card for an element and appends it to the Parent
- Parameters
-
parent[out] | the node the Card gets appended to |
element | the element to create the Card for |
Definition at line 99 of file HtmlGenerator.cpp.
References Field::value.
◆ appendTable()
auto HtmlGenerator::appendTable |
( |
CTML::Node & |
parent, |
|
|
const BibElement & |
element |
|
) |
| -> void |
|
staticnoexcept |
Appends a table of all Element-Atrributes to a node
- Parameters
-
parent[out] | the node to append the table to |
element | the element to create the table for |
Definition at line 145 of file HtmlGenerator.cpp.
◆ fail()
auto HtmlGenerator::fail |
( |
const std::string & |
message, |
|
|
const std::string & |
type |
|
) |
| -> void |
|
overridevirtual |
◆ fillContainer()
void HtmlGenerator::fillContainer |
( |
CTML::Node & |
parent | ) |
const -> void |
|
noexcept |
Fills the Main Container-Div of the Page-Body
- Parameters
-
parent[out] | The Parent node (Container-Div) |
Definition at line 84 of file HtmlGenerator.cpp.
◆ write()
auto HtmlGenerator::write |
( |
| ) |
-> std::string |
|
overridevirtual |
The documentation for this struct was generated from the following files: