Public Member Functions

XmlFormatter Class Reference

Inheritance diagram for XmlFormatter:
BenchFormatter

List of all members.

Public Member Functions

 XmlFormatter (std::string out="stats.xml")
virtual void writeTitle (const std::vector< std::string > &titles, const std::vector< std::string > &values)
 write the titles of the columns or groups.
virtual void writeResult (const std::string &val, std::vector< BenchResult > results)
 write the result information for value val.
virtual void finish ()
 Called after all benchmarks have run.

Member Function Documentation

void XmlFormatter::finish (  ) [virtual]

Called after all benchmarks have run.

This is a good place to close any open file handles.

Reimplemented from BenchFormatter.

void XmlFormatter::writeResult ( const std::string &  val,
std::vector< BenchResult results 
) [virtual]

write the result information for value val.

Parameters:
valconst std::string& the value.
resultsstd::vector<BenchResult> a vector of benchmark results.

The benchmark results appear in the order the corresponding benchmarks were added to the BenchmarkGroup.

Implements BenchFormatter.

void XmlFormatter::writeTitle ( const std::vector< std::string > &  titles,
const std::vector< std::string > &  values 
) [virtual]

write the titles of the columns or groups.

Parameters:
titlesstd::vector<std::string>&.

Implements BenchFormatter.


The documentation for this class was generated from the following files: