libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::HTMLWriter Class Reference

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

osmscout::HTMLWriter::HTMLWriter ( )
osmscout::HTMLWriter::~HTMLWriter ( )
virtual

Member Function Documentation

void osmscout::HTMLWriter::Close ( )
Exceptions
IOException
void osmscout::HTMLWriter::CloseFailsafe ( )

Referenced by ~HTMLWriter().

std::string osmscout::HTMLWriter::GetFilename ( ) const
inline
bool osmscout::HTMLWriter::HasError ( ) const
inline
bool osmscout::HTMLWriter::IsOpen ( ) const
inline
void osmscout::HTMLWriter::Open ( const std::string &  filename)
Exceptions
IOException
std::string osmscout::HTMLWriter::Sanitize ( const std::string &  string) const
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 
)
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().

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 
)
void osmscout::HTMLWriter::WriteText ( const std::string &  text)

References Sanitize().


The documentation for this class was generated from the following files: