top | up | prev | next

Domain Class

Definition at line 13 of Domain.hpp

Member Functions

void Accept(Visitor& visitor)
void AddParser(GrammarParser* parser)
void AddParserFile(ParserFile* parserFile)
GrammarParser* GetParser(const std::u32string& parserName) const
const std::vector<ParserFile*>& ParserFiles() const

Member Variables

std::vector<ParserFile*> parserFiles
std::map<std::u32string, GrammarParser*> parserMap

Member Function Details

Accept Member Function

void sng2html::sng2html::Domain::Accept(Visitor & visitor)

Definition at line 14 of Domain.cpp :
15 {
16     visitor.Visit(*this);
17 }


Declaration at line 16 of Domain.hpp

Calls: sng2html::sng2html::Visitor::Visit

Called by: sng2html::sng2html::Project::GenerateHtml , sng2html::sng2html::Project::Link


AddParser Member Function

void sng2html::sng2html::Domain::AddParser(GrammarParser * parser)

Definition at line 24 of Domain.cpp :
25 {
26     auto it = parserMap.find(parser->Name());
27     if (it != parserMap.cend())
28     {
29         throw std::runtime_error("parser '" + ToUtf8(parser->Name()) + "' already exists");
30     }
31     parserMap[parser->Name()] = parser;
32 }


Declaration at line 19 of Domain.hpp

Calls: sng2html::sng2html::Parser::Name

Called by: sng2html::sng2html::LinkerVisitor::Visit


AddParserFile Member Function

void sng2html::sng2html::Domain::AddParserFile(ParserFile * parserFile)

Definition at line 19 of Domain.cpp :
20 {
21     parserFiles.push_back(parserFile);
22 }


Declaration at line 17 of Domain.hpp

Called by: sng2html::sng2html::Project::ReadParserFiles


GetParser Member Function

GrammarParser * sng2html::sng2html::Domain::GetParser(const std::u32string& parserName) const

Definition at line 34 of Domain.cpp
Declaration at line 20 of Domain.hpp

Called by: sng2html::sng2html::LinkerVisitor::Visit , sng2html::sng2html::Project::ReadGrammarFiles


ParserFiles Member Function

const std::vector<ParserFile *>& sng2html::sng2html::Domain::ParserFiles() const

Definition at line 18 of Domain.hpp :
18 { return parserFiles; }

Called by: sng2html::sng2html::GrammarHtmlGeneratorVisitor::Visit , sng2html::sng2html::LinkerVisitor::Visit


top | up | prev | next