🔧 Also dump m_lookup_context to html file

This commit is contained in:
Edgar 2021-01-15 10:29:23 +01:00
parent 5e18461c9e
commit 1c4b434079
2 changed files with 13 additions and 1 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ cmake-build-*/
docs/ docs/
build/ build/
_build/ _build/
*.html

View File

@ -635,6 +635,17 @@ class moFileReader
} }
stream << "</table><br/>" << std::endl; stream << "</table><br/>" << std::endl;
// Separate tables for each context
for (const auto &it : reader.m_lookup_context)
{
stream << R"(<table border="1"><th colspan="2">)" << it.first << "</th>" << std::endl;
for (const auto &its : it.second)
{
stream << "<tr><td>" << its.first << "</td><td>" << its.second << "</td></tr>" << std::endl;
}
stream << "</table><br/>" << std::endl;
}
stream << "</center>" << std::endl; stream << "</center>" << std::endl;
stream << "<div class=\"copyleft\">File generated by <a href=\"https://github.com/AnotherFoxGuy/MofileReader\" " stream << "<div class=\"copyleft\">File generated by <a href=\"https://github.com/AnotherFoxGuy/MofileReader\" "
"target=\"_blank\">moFileReaderSDK</a></div>" "target=\"_blank\">moFileReaderSDK</a></div>"