top | up | prev | next

DomDocumentHandler Class

Definition at line 23 of Parser.cpp

Constructors

DomDocumentHandler()

Member Functions

void AddTextContent()
void AddTextContent(bool addSpace)
void CDataSection(const std::u32string& data) override
void Comment(const std::u32string& comment) override
void Encoding(const std::u32string& encoding) override
void EndDocument() override
void EndElement(const std::u32string& namespaceUri, const std::u32string& localName, const std::u32string& qualifiedName) override
std::unique_ptr<Document> GetDocument()
void PI(const std::u32string& target, const std::u32string& data) override
void SkippedEntity(const std::u32string& entityName) override
void Standalone(bool standalone) override
void StartDocument() override
void StartElement(const std::u32string& namespaceUri, const std::u32string& localName, const std::u32string& qualifiedName, const Attributes& attributes) override
void Text(const std::u32string& text) override
void Version(const std::u32string& xmlVersion) override

Member Variables

std::unique_ptr<Element> currentElement
std::unique_ptr<Document> document
std::stack<std::unique_ptr<Element>> elementStack
std::u32string textContent

Constructor Details

DomDocumentHandler Constructor

sngxml::dom::DomDocumentHandler::DomDocumentHandler()

Definition at line 49 of Parser.cpp :
 49 : document(new Document())
 50 {
 51 }


Declaration at line 26 of Parser.cpp


Member Function Details

AddTextContent Member Function

void sngxml::dom::DomDocumentHandler::AddTextContent()

Definition at line 58 of Parser.cpp :
 59 {
 60     AddTextContent(false);
 61 }


Declaration at line 45 of Parser.cpp

Calls: sngxml::dom::DomDocumentHandler::AddTextContent

Called by: sngxml::dom::DomDocumentHandler::CDataSection , sngxml::dom::DomDocumentHandler::Comment , sngxml::dom::DomDocumentHandler::EndElement , sngxml::dom::DomDocumentHandler::PI


AddTextContent Member Function

void sngxml::dom::DomDocumentHandler::AddTextContent(bool addSpace)

Definition at line 63 of Parser.cpp
Declaration at line 46 of Parser.cpp

Called by: sngxml::dom::DomDocumentHandler::AddTextContent , sngxml::dom::DomDocumentHandler::StartElement


CDataSection Member Function

void sngxml::dom::DomDocumentHandler::CDataSection(const std::u32string& data) override

Definition at line 139 of Parser.cpp
Declaration at line 36 of Parser.cpp

Base class overridden functions: sngxml::xml::XmlContentHandler::CDataSection

Calls: sngxml::dom::DomDocumentHandler::AddTextContent


Comment Member Function

void sngxml::dom::DomDocumentHandler::Comment(const std::u32string& comment) override

Definition at line 111 of Parser.cpp
Declaration at line 34 of Parser.cpp

Base class overridden functions: sngxml::xml::XmlContentHandler::Comment

Calls: sngxml::dom::DomDocumentHandler::AddTextContent


Encoding Member Function

void sngxml::dom::DomDocumentHandler::Encoding(const std::u32string& encoding) override

Definition at line 101 of Parser.cpp :
102 {
103     document->SetXmlEncoding(encoding);
104 }


Declaration at line 32 of Parser.cpp

Base class overridden functions: sngxml::xml::XmlContentHandler::Encoding


EndDocument Member Function

void sngxml::dom::DomDocumentHandler::EndDocument() override

Definition at line 86 of Parser.cpp :
 87 {
 89 }


Declaration at line 29 of Parser.cpp

Base class overridden functions: sngxml::xml::XmlContentHandler::EndDocument


EndElement Member Function

void sngxml::dom::DomDocumentHandler::EndElement(const std::u32string& namespaceUri, const std::u32string& localName, const std::u32string& qualifiedName) override

Definition at line 170 of Parser.cpp
Declaration at line 38 of Parser.cpp

Base class overridden functions: sngxml::xml::XmlContentHandler::EndElement

Calls: sngxml::dom::DomDocumentHandler::AddTextContent


GetDocument Member Function

std::unique_ptr<Document > sngxml::dom::DomDocumentHandler::GetDocument()

Definition at line 53 of Parser.cpp :
 54 {
 55     return std::move(document);
 56 }


Declaration at line 27 of Parser.cpp


PI Member Function

void sngxml::dom::DomDocumentHandler::PI(const std::u32string& target, const std::u32string& data) override

Definition at line 125 of Parser.cpp
Declaration at line 35 of Parser.cpp

Base class overridden functions: sngxml::xml::XmlContentHandler::PI

Calls: sngxml::dom::DomDocumentHandler::AddTextContent


SkippedEntity Member Function

void sngxml::dom::DomDocumentHandler::SkippedEntity(const std::u32string& entityName) override

Definition at line 186 of Parser.cpp :
187 {
189 }


Declaration at line 39 of Parser.cpp

Base class overridden functions: sngxml::xml::XmlContentHandler::SkippedEntity


Standalone Member Function

void sngxml::dom::DomDocumentHandler::Standalone(bool standalone) override

Definition at line 96 of Parser.cpp :
 97 {
 98     document->SetXmlStandalone(standalone);
 99 }


Declaration at line 31 of Parser.cpp

Base class overridden functions: sngxml::xml::XmlContentHandler::Standalone


StartDocument Member Function

void sngxml::dom::DomDocumentHandler::StartDocument() override

Definition at line 81 of Parser.cpp :
 82 {
 84 }


Declaration at line 28 of Parser.cpp

Base class overridden functions: sngxml::xml::XmlContentHandler::StartDocument


StartElement Member Function

void sngxml::dom::DomDocumentHandler::StartElement(const std::u32string& namespaceUri, const std::u32string& localName, const std::u32string& qualifiedName, const Attributes & attributes) override

Definition at line 153 of Parser.cpp
Declaration at line 37 of Parser.cpp

Base class overridden functions: sngxml::xml::XmlContentHandler::StartElement

Calls: sngxml::dom::DomDocumentHandler::AddTextContent , sngxml::xml::Attribute::QualifiedName , sngxml::xml::Attribute::Value


Text Member Function

void sngxml::dom::DomDocumentHandler::Text(const std::u32string& text) override

Definition at line 106 of Parser.cpp :
107 {
108     textContent.append(text);
109 }


Declaration at line 33 of Parser.cpp

Base class overridden functions: sngxml::xml::XmlContentHandler::Text


Version Member Function

void sngxml::dom::DomDocumentHandler::Version(const std::u32string& xmlVersion) override

Definition at line 91 of Parser.cpp :
 92 {
 93     document->SetXmlVersion(xmlVersion);
 94 }


Declaration at line 30 of Parser.cpp

Base class overridden functions: sngxml::xml::XmlContentHandler::Version


top | up | prev | next