Celero
Print.h
1 #pragma once
2 
20 
21 #include <celero/Experiment.h>
22 #include <memory>
23 #include <string>
24 
25 namespace celero
26 {
32  class Printer
33  {
34  public:
37  static Printer& get()
38  {
39  static Printer p;
40  return p;
41  }
42 
46  void initialize(std::vector<std::string> userDefinedColumns);
47 
48  void Console(const std::string& x);
49  void TableBanner(const size_t groupNameLength = 15);
50  void TableRowExperimentHeader(Experiment* x);
51  void TableRowFailure(const std::string& msg);
52  void TableRowProblemSpaceHeader(std::shared_ptr<celero::ExperimentResult> x);
53  void TableRowHeader(std::shared_ptr<celero::ExperimentResult> x);
54  void TableResult(std::shared_ptr<celero::ExperimentResult> x);
55 
56  private:
57  Printer() = default;
58 
59  std::vector<std::string> userDefinedColumns;
60  std::vector<size_t> columnWidths;
61  };
62 } // namespace celero
63 
Definition: Archive.h:25
void initialize(std::vector< std::string > userDefinedColumns)
Initialize the Printer object with specific user-defined columns.
Definition: Print.cpp:356
Definition: Print.h:32
Definition: Experiment.h:36