|
libhtmlpp 1.0.0
|
High level loader/saver for HTML documents (files and strings). More...
#include <html.h>
Public Member Functions | |
| HtmlPage () | |
| ~HtmlPage () | |
| void | loadFile (libhtmlpp::HtmlElement &html, const std::string &path) |
| Loads an HTML file from disk into a given HtmlElement root. | |
| void | saveFile (libhtmlpp::HtmlElement &html, const std::string &path) |
| Serializes an HtmlElement subtree and writes it to a file. | |
| void | loadString (libhtmlpp::HtmlElement &html, const std::string &src) |
Parses an HTML source string and copies the result into html. | |
| void | loadString (libhtmlpp::HtmlElement &html, const HtmlString &node) |
| void | loadString (libhtmlpp::HtmlElement &html, const HtmlString *node) |
| bool | isHtml5 () |
High level loader/saver for HTML documents (files and strings).
| void libhtmlpp::HtmlPage::loadFile | ( | libhtmlpp::HtmlElement & | html, |
| const std::string & | path | ||
| ) |
Loads an HTML file from disk into a given HtmlElement root.
| html | Output root element to populate. |
| path | Filesystem path to the HTML file. |
| HTMLException | if the file cannot be opened or parsed. |
| void libhtmlpp::HtmlPage::loadString | ( | libhtmlpp::HtmlElement & | html, |
| const HtmlString & | node | ||
| ) |
| void libhtmlpp::HtmlPage::loadString | ( | libhtmlpp::HtmlElement & | html, |
| const HtmlString * | node | ||
| ) |
| void libhtmlpp::HtmlPage::loadString | ( | libhtmlpp::HtmlElement & | html, |
| const std::string & | src | ||
| ) |
Parses an HTML source string and copies the result into html.
| html | Output root element to populate. |
| src | Input HTML source. |
| HTMLException | on malformed input. |
| void libhtmlpp::HtmlPage::saveFile | ( | libhtmlpp::HtmlElement & | html, |
| const std::string & | path | ||
| ) |
Serializes an HtmlElement subtree and writes it to a file.
| html | Element to serialize. |
| path | Destination file path. |
| HTMLException | on I/O errors. |