Initial commit.

This commit is contained in:
jmsgrogan 2020-05-02 08:31:03 +01:00
commit 59c6161fdb
134 changed files with 4751 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#include "HtmlDocument.h"
HtmlDocument::HtmlDocument()
: XmlDocument()
{
}
std::shared_ptr<HtmlDocument> HtmlDocument::Create()
{
return std::make_shared<HtmlDocument>();
}

View file

@ -0,0 +1,14 @@
#pragma once
#include <memory>
#include "XmlDocument.h"
class HtmlDocument : public XmlDocument
{
public:
HtmlDocument();
static std::shared_ptr<HtmlDocument> Create();
};
using HtmlDocumentPtr = std::shared_ptr<HtmlDocument>;

View file

View file

View file

@ -0,0 +1,11 @@
#include "HtmlElement.h"
HtmlElement::HtmlElement()
{
}
static std::shared_ptr<HtmlElement> HtmlElement::Create()
{
return std::make_shared<HtmlElement>();
}

View file

@ -0,0 +1,12 @@
#pragma once
#include <memory>
#include "XmlElement.h"
class HtmlElement : public XmlElement
{
HtmlElement();
static std::shared_ptr<HtmlElement> Create();
};
using HtmlElementPtr = std::shared_ptr<HtmlElement>;

View file

@ -0,0 +1,11 @@
#include "HtmlWriter.h"
HtmlWriter::HtmlWriter()
{
}
std::string HtmlWriter::ToString(HtmlDocumentPtr document)
{
return "<html>Uh oh!!!!</html>";
}

12
src/web/html/HtmlWriter.h Normal file
View file

@ -0,0 +1,12 @@
#pragma once
#include "HtmlDocument.h"
class HtmlWriter
{
public:
HtmlWriter();
std::string ToString(HtmlDocumentPtr document);
};

View file

View file