top | up | prev | next

XmlParsingLog Class

Definition at line 12 of XmlParsingLog.hpp

Constructors

XmlParsingLog(std::ostream& stream_)
XmlParsingLog(std::ostream& stream_, int maxLineLength_)

Member Functions

void DecIndent() override
CodeFormatter& Formatter()
void IncIndent() override
void Write(const std::u32string& s)
void WriteBeginRule(const std::u32string& ruleName) override
void WriteElement(const std::u32string& elementName, const std::u32string& elementContent)
void WriteEndRule(const std::u32string& ruleName) override
void WriteFail() override
void WriteSuccess(const std::u32string& match) override
void WriteTry(const std::u32string& s) override

Member Variables

CodeFormatter formatter

Constructor Details

XmlParsingLog Constructor

soulng::lexer::XmlParsingLog::XmlParsingLog(std::ostream& stream_)

Definition at line 64 of XmlParsingLog.cpp :
 64 : ParsingLog()formatter(stream_)
 65 {
 66     formatter.SetIndentSize(1);
 67 }


Declaration at line 15 of XmlParsingLog.hpp


XmlParsingLog Constructor

soulng::lexer::XmlParsingLog::XmlParsingLog(std::ostream& stream_, int maxLineLength_)

Definition at line 69 of XmlParsingLog.cpp :
 69 : ParsingLog(maxLineLength_)formatter(stream_)
 70 {
 71     formatter.SetIndentSize(1);
 72 }


Declaration at line 16 of XmlParsingLog.hpp


Member Function Details

DecIndent Member Function

void soulng::lexer::XmlParsingLog::DecIndent() override

Definition at line 79 of XmlParsingLog.cpp :
 80 {
 81     formatter.DecIndent();
 82 }


Declaration at line 18 of XmlParsingLog.hpp

Base class overridden functions: soulng::lexer::ParsingLog::DecIndent

Calls: soulng::util::CodeFormatter::DecIndent


Formatter Member Function

CodeFormatter & soulng::lexer::XmlParsingLog::Formatter()

Definition at line 26 of XmlParsingLog.hpp :
26 { return formatter; }


IncIndent Member Function

void soulng::lexer::XmlParsingLog::IncIndent() override

Definition at line 74 of XmlParsingLog.cpp :
 75 {
 76     formatter.IncIndent();
 77 }


Declaration at line 17 of XmlParsingLog.hpp

Base class overridden functions: soulng::lexer::ParsingLog::IncIndent

Calls: soulng::util::CodeFormatter::IncIndent


Write Member Function

void soulng::lexer::XmlParsingLog::Write(const std::u32string& s)

Definition at line 123 of XmlParsingLog.cpp :
124 {
125     formatter.WriteLine(ToUtf8(s));
126 }


Declaration at line 25 of XmlParsingLog.hpp

Calls: soulng::util::CodeFormatter::WriteLine

Called by: soulng::lexer::XmlParsingLog::WriteBeginRule , soulng::lexer::XmlParsingLog::WriteElement , soulng::lexer::XmlParsingLog::WriteEndRule , soulng::lexer::XmlParsingLog::WriteFail


WriteBeginRule Member Function

void soulng::lexer::XmlParsingLog::WriteBeginRule(const std::u32string& ruleName) override

Definition at line 84 of XmlParsingLog.cpp :
 85 {
 86     Write(U"<" + ruleName + U">");
 87 }


Declaration at line 19 of XmlParsingLog.hpp

Base class overridden functions: soulng::lexer::ParsingLog::WriteBeginRule

Calls: soulng::lexer::XmlParsingLog::Write


WriteElement Member Function

void soulng::lexer::XmlParsingLog::WriteElement(const std::u32string& elementName, const std::u32string& elementContent)

Definition at line 109 of XmlParsingLog.cpp
Declaration at line 24 of XmlParsingLog.hpp

Calls: soulng::lexer::ParsingLog::MaxLineLength , soulng::lexer::XmlParsingLog::Write

Called by: soulng::lexer::XmlParsingLog::WriteSuccess , soulng::lexer::XmlParsingLog::WriteTry


WriteEndRule Member Function

void soulng::lexer::XmlParsingLog::WriteEndRule(const std::u32string& ruleName) override

Definition at line 89 of XmlParsingLog.cpp :
 90 {
 91     Write(U"</" + ruleName + U">");
 92 }


Declaration at line 20 of XmlParsingLog.hpp

Base class overridden functions: soulng::lexer::ParsingLog::WriteEndRule

Calls: soulng::lexer::XmlParsingLog::Write


WriteFail Member Function

void soulng::lexer::XmlParsingLog::WriteFail() override

Definition at line 104 of XmlParsingLog.cpp :
105 {
106     Write(U"<fail/>");
107 }


Declaration at line 23 of XmlParsingLog.hpp

Base class overridden functions: soulng::lexer::ParsingLog::WriteFail

Calls: soulng::lexer::XmlParsingLog::Write


WriteSuccess Member Function

void soulng::lexer::XmlParsingLog::WriteSuccess(const std::u32string& match) override

Definition at line 99 of XmlParsingLog.cpp :
100 {
101     WriteElement(U"success"match);
102 }


Declaration at line 22 of XmlParsingLog.hpp

Base class overridden functions: soulng::lexer::ParsingLog::WriteSuccess

Calls: soulng::lexer::XmlParsingLog::WriteElement


WriteTry Member Function

void soulng::lexer::XmlParsingLog::WriteTry(const std::u32string& s) override

Definition at line 94 of XmlParsingLog.cpp :
 95 {
 96     WriteElement(U"try"s);
 97 }


Declaration at line 21 of XmlParsingLog.hpp

Base class overridden functions: soulng::lexer::ParsingLog::WriteTry

Calls: soulng::lexer::XmlParsingLog::WriteElement


top | up | prev | next