class Core::Portable::HtmlWriter

Overview

Helper class to programmatically generate HTML output. More…

#include <corehtmlwriter.h>

class HtmlWriter: protected Core::Portable::XmlWriter
{
public:
    // construction

    HtmlWriter(IO::Stream& stream);

    // methods

    HtmlWriter& beginDocument(CStringPtr title);
    HtmlWriter& write(CStringPtr text);
    HtmlWriter& endDocument();
};

Inherited Members

public:
    // structs

    struct Attribute;

    // methods

    XmlWriter& beginDocumentUTF8();

    XmlWriter& startElement(
        CStringPtr name,
        const Attribute attributes[] = 0,
        int attrCount = 0,
        bool closed = false
    );

    XmlWriter& endElement(CStringPtr name);

Detailed Documentation

Helper class to programmatically generate HTML output.

Implementation borrows entity encoding from XML.