|
libosmscout 0.1
|
HTMLWriter allows easy generation of HTML web pages containing OSM based reports. More...
#include <HTMLWriter.h>
Public Member Functions | |
| void | Close () |
| void | CloseFailsafe () |
| std::string | GetFilename () const |
| bool | HasError () const |
| HTMLWriter () | |
| bool | IsOpen () const |
| void | Open (const std::string &filename) |
| std::string | Sanitize (const std::string &string) const |
| void | WriteBodyEnd () |
| void | WriteBodyStart () |
| void | WriteDocumentEnd () |
| void | WriteDocumentStart () |
| void | WriteHeader (const std::string &title, const std::string &description, const std::string &keywords, const std::string &stylesheetLocation) |
| void | WriteHeaderEnd () |
| void | WriteHeaderStart (const std::string &title, const std::string &description, const std::string &keywords, const std::string &stylesheetLocation) |
| void | WriteLink (const std::string &url, const std::string &title) |
| void | WriteListEnd () |
| void | WriteListEntryEnd () |
| void | WriteListEntryStart () |
| void | WriteListStart () |
| void | WriteMeta (const std::string &name, const std::string &content) |
| void | WriteOSMObjectLink (const ObjectOSMRef &object, const std::string &name) |
| void | WriteText (const std::string &text) |
| virtual | ~HTMLWriter () |
HTMLWriter allows easy generation of HTML web pages containing OSM based reports.
It not only allows writing simple HTML primitives but also offers higher level methods.
| osmscout::HTMLWriter::HTMLWriter | ( | ) |
|
virtual |
References CloseFailsafe(), and osmscout::log.
| void osmscout::HTMLWriter::Close | ( | ) |
| IOException |
| void osmscout::HTMLWriter::CloseFailsafe | ( | ) |
Referenced by ~HTMLWriter().
|
inline |
|
inline |
|
inline |
| void osmscout::HTMLWriter::Open | ( | const std::string & | filename | ) |
| IOException |
| std::string osmscout::HTMLWriter::Sanitize | ( | const std::string & | string | ) | const |
Referenced by WriteHeaderStart(), WriteLink(), WriteMeta(), and WriteText().
| void osmscout::HTMLWriter::WriteBodyEnd | ( | ) |
| void osmscout::HTMLWriter::WriteBodyStart | ( | ) |
| void osmscout::HTMLWriter::WriteDocumentEnd | ( | ) |
| void osmscout::HTMLWriter::WriteDocumentStart | ( | ) |
| void osmscout::HTMLWriter::WriteHeader | ( | const std::string & | title, |
| const std::string & | description, | ||
| const std::string & | keywords, | ||
| const std::string & | stylesheetLocation ) |
References WriteHeaderEnd(), and WriteHeaderStart().
| void osmscout::HTMLWriter::WriteHeaderEnd | ( | ) |
Referenced by WriteHeader().
| void osmscout::HTMLWriter::WriteHeaderStart | ( | const std::string & | title, |
| const std::string & | description, | ||
| const std::string & | keywords, | ||
| const std::string & | stylesheetLocation ) |
References Sanitize(), and WriteMeta().
Referenced by WriteHeader().
| void osmscout::HTMLWriter::WriteLink | ( | const std::string & | url, |
| const std::string & | title ) |
References Sanitize().
Referenced by WriteOSMObjectLink().
| void osmscout::HTMLWriter::WriteListEnd | ( | ) |
| void osmscout::HTMLWriter::WriteListEntryEnd | ( | ) |
| void osmscout::HTMLWriter::WriteListEntryStart | ( | ) |
| void osmscout::HTMLWriter::WriteListStart | ( | ) |
| void osmscout::HTMLWriter::WriteMeta | ( | const std::string & | name, |
| const std::string & | content ) |
References Sanitize().
Referenced by WriteHeaderStart().
| void osmscout::HTMLWriter::WriteOSMObjectLink | ( | const ObjectOSMRef & | object, |
| const std::string & | name ) |
References osmscout::osmRefNode, osmscout::osmRefNone, osmscout::osmRefRelation, osmscout::osmRefWay, and WriteLink().
| void osmscout::HTMLWriter::WriteText | ( | const std::string & | text | ) |
References Sanitize().