src/heatmap.h

changeset 54
586dcd606e47
parent 44
de22ded6d50a
equal deleted inserted replaced
53:1c80ba4a0d62 54:586dcd606e47
29 #include <array> 29 #include <array>
30 #include <string> 30 #include <string>
31 #include <chrono> 31 #include <chrono>
32 32
33 #include "settings.h" 33 #include "settings.h"
34 #include "commit-data.h"
34 35
35 namespace fm { 36 namespace fm {
36 37
37 class heatmap { 38 class heatmap {
38 // to have nice sorted output later, we use ordered maps here 39 // to have nice sorted output later, we use ordered maps here
40 std::string, // repository 41 std::string, // repository
41 std::map< 42 std::map<
42 std::string, // author 43 std::string, // author
43 std::map< 44 std::map<
44 std::chrono::year_month_day, // date 45 std::chrono::year_month_day, // date
45 unsigned int // commits 46 commits
46 >>> m_heatmap; 47 >>> m_heatmap;
47 std::string m_current_repo = "All Repositories"; 48 std::string m_current_repo = "All Repositories";
48 public: 49 public:
49 void set_repo(const std::string& repo) { 50 void set_repo(const std::string& repo) {
50 m_current_repo.assign(repo); 51 m_current_repo.assign(repo);

mercurial