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