Class representing a HTML report, consisting of a list of sections.
More...
#include <DebugReport.h>
|
void | addCodeSection (std::string id, std::string title, std::string_view language, std::string_view prev, std::string_view curr) |
|
void | addSection (DebugReportSection section) |
|
void | addSection (std::string id, std::string title, std::string_view code) |
|
void | endSection (std::string currentSectionName, std::string currentSectionTitle) |
|
void | flush () |
|
void | print (std::ostream &out) const |
| Outputs a complete HTML document to the given stream, consisting of an index of all of the sections of the report, followed by the content of each section. More...
|
|
void | startSection () |
|
| ~DebugReport () |
|
Class representing a HTML report, consisting of a list of sections.
Definition at line 87 of file DebugReport.h.
◆ ~DebugReport()
souffle::DebugReport::~DebugReport |
( |
| ) |
|
◆ addCodeSection()
void souffle::DebugReport::addCodeSection |
( |
std::string |
id, |
|
|
std::string |
title, |
|
|
std::string_view |
language, |
|
|
std::string_view |
prev, |
|
|
std::string_view |
curr |
|
) |
| |
◆ addSection() [1/2]
◆ addSection() [2/2]
void souffle::DebugReport::addSection |
( |
std::string |
id, |
|
|
std::string |
title, |
|
|
std::string_view |
code |
|
) |
| |
◆ empty()
bool souffle::DebugReport::empty |
( |
| ) |
const |
|
inlineprivate |
◆ endSection()
void souffle::DebugReport::endSection |
( |
std::string |
currentSectionName, |
|
|
std::string |
currentSectionTitle |
|
) |
| |
◆ flush()
void souffle::DebugReport::flush |
( |
| ) |
|
◆ getCodeSection()
static DebugReportSection souffle::DebugReport::getCodeSection |
( |
const std::string & |
id, |
|
|
std::string |
title, |
|
|
std::string |
code |
|
) |
| |
|
static |
Generate a debug report section for code (preserving formatting), with the given id and title.
◆ print()
void souffle::DebugReport::print |
( |
std::ostream & |
out | ) |
const |
Outputs a complete HTML document to the given stream, consisting of an index of all of the sections of the report, followed by the content of each section.
◆ startSection()
void souffle::DebugReport::startSection |
( |
| ) |
|
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const DebugReport & |
report |
|
) |
| |
|
friend |
◆ currentSubsections
◆ nextUniqueId
uint32_t souffle::DebugReport::nextUniqueId = 0 |
|
private |
◆ sections
The documentation for this class was generated from the following file: