souffle
2.0.2-371-g6315b36
|
Go to the documentation of this file.
22 #include <string_view>
33 class DebugReportSection {
74 return std::move(
id) + std::to_string(
count++);
89 buf.emplace_back(std::move(section));
92 void addSection(std::string
id, std::string title, std::string_view code);
93 void addCodeSection(std::string
id, std::string title, std::string_view language, std::string_view prev,
94 std::string_view curr);
100 void endSection(std::string currentSectionName, std::string currentSectionTitle);
107 void print(std::ostream& out)
const;
static std::string generateUniqueID(std::string id)
std::vector< DebugReportSection > sections
Class representing a section of a HTML report.
bool hasSubsections() const
A functor representing the identity function for a generic type T.
void printTitle(std::ostream &out) const
Outputs the HTML code for the title header to the given stream.
void printIndex(std::ostream &out) const
Outputs the HTML code for the index to the given stream, consisting of a link to the section body fol...
void addSection(DebugReportSection section)
void print(std::ostream &out) const
Outputs a complete HTML document to the given stream, consisting of an index of all of the sections o...
friend std::ostream & operator<<(std::ostream &out, const DebugReport &report)
void printContent(std::ostream &out) const
Outputs the HTML code for the content of the section to the given stream, consisting of the title hea...
void addCodeSection(std::string id, std::string title, std::string_view language, std::string_view prev, std::string_view curr)
Class representing a HTML report, consisting of a list of sections.
DebugReportSection(std::string id, std::string title, std::string body)
static DebugReportSection getCodeSection(const std::string &id, std::string title, std::string code)
Generate a debug report section for code (preserving formatting), with the given id and title.
void endSection(std::string currentSectionName, std::string currentSectionTitle)
std::stack< std::vector< DebugReportSection > > currentSubsections
std::vector< DebugReportSection > subsections