src/heatmap.h

changeset 16
730a5638c4ad
parent 5
60c2588b4455
child 44
de22ded6d50a
equal deleted inserted replaced
15:ef0f2497843e 16:730a5638c4ad
27 27
28 #include <map> 28 #include <map>
29 #include <string> 29 #include <string>
30 #include <chrono> 30 #include <chrono>
31 31
32 #include "settings.h"
33
32 namespace fm { 34 namespace fm {
33 35
34 class heatmap { 36 class heatmap {
35 // to have nice sorted output later, we use ordered maps here 37 // to have nice sorted output later, we use ordered maps here
36 std::map< 38 std::map<
44 std::string m_current_repo = "All Repositories"; 46 std::string m_current_repo = "All Repositories";
45 public: 47 public:
46 void set_repo(const std::string& repo) { 48 void set_repo(const std::string& repo) {
47 m_current_repo.assign(repo); 49 m_current_repo.assign(repo);
48 } 50 }
49 void add(const std::string& log); 51 void add(const settings &settings, const std::string& log);
50 52
51 [[nodiscard]] const auto& data() const { 53 [[nodiscard]] const auto& data() const {
52 return m_heatmap; 54 return m_heatmap;
53 } 55 }
54 }; 56 };

mercurial