Writes results to a xml file.
More...
#include <XMLWriter.h>
|
void | replace (std::string &s, const std::string &pattern, const std::string &replacement) const |
|
std::string | sanitize (const std::string &s, bool eliminateSlashes=false) const |
|
std::string | sanitizeTool (const std::unique_ptr< Tool > &tool) const |
|
std::string | sanitizeFile (const fs::path &file) const |
|
template<typename Results > |
std::vector< std::string > | collectStatistics (const Results &results) const |
|
Writes results to a xml file.
Definition at line 18 of file XMLWriter.h.
◆ XMLWriter()
benchmax::XMLWriter::XMLWriter |
( |
const std::string & |
filename | ) |
|
|
inline |
Open file for writing.
Definition at line 61 of file XMLWriter.h.
◆ collectStatistics()
template<typename Results >
std::vector<std::string> benchmax::XMLWriter::collectStatistics |
( |
const Results & |
results | ) |
const |
|
inlineprivate |
◆ replace()
void benchmax::XMLWriter::replace |
( |
std::string & |
s, |
|
|
const std::string & |
pattern, |
|
|
const std::string & |
replacement |
|
) |
| const |
|
inlineprivate |
◆ sanitize()
std::string benchmax::XMLWriter::sanitize |
( |
const std::string & |
s, |
|
|
bool |
eliminateSlashes = false |
|
) |
| const |
|
inlineprivate |
◆ sanitizeFile()
std::string benchmax::XMLWriter::sanitizeFile |
( |
const fs::path & |
file | ) |
const |
|
inlineprivate |
◆ sanitizeTool()
std::string benchmax::XMLWriter::sanitizeTool |
( |
const std::unique_ptr< Tool > & |
tool | ) |
const |
|
inlineprivate |
◆ write()
template<typename Results >
void benchmax::XMLWriter::write |
( |
const Jobs & |
jobs, |
|
|
const Results & |
results |
|
) |
| |
|
inline |
Write results to file.
Definition at line 66 of file XMLWriter.h.
◆ mFile
std::ofstream benchmax::XMLWriter::mFile |
|
private |
The documentation for this class was generated from the following file: