Classes | Defines | Functions

httpsrv.cpp File Reference

#include "httpsrv.h"
Include dependency graph for httpsrv.cpp:

Go to the source code of this file.

Classes

struct  HTMLFormat
struct  HTMLWriter

Defines

#define HTML_FORMAT   FORMAT_PLAIN
#define HTML_PRETTY   PRETTY_PLAIN

Functions

static string get_html_page (XMLDoc &html_doc)

Define Documentation

#define HTML_FORMAT   FORMAT_PLAIN

Definition at line 44 of file httpsrv.cpp.

Referenced by get_html_page().

#define HTML_PRETTY   PRETTY_PLAIN

Definition at line 45 of file httpsrv.cpp.

Referenced by HTMLFormat::HTMLFormat().


Function Documentation

static string get_html_page ( XMLDoc html_doc ) [static]

Definition at line 397 of file httpsrv.cpp.

References XMLStorage::XMLFormat::_doctype, XMLStorage::XMLDoc::_format, XMLStorage::DocType::_name, HTML_FORMAT, and XMLStorage::XMLDoc::write().

{
    ostringstream ostr;

    html_doc._format._doctype._name =
        "html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
        "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"";

    html_doc.write(ostr, HTML_FORMAT);

    return ostr.str();
}

Here is the call graph for this function: