9
|
1 #ifndef __core__anime_db_h
|
|
2 #define __core__anime_db_h
|
|
3 #include <unordered_map>
|
|
4
|
|
5 namespace Anime {
|
|
6
|
|
7 class Anime;
|
|
8
|
|
9 class Database {
|
|
10 public:
|
|
11 std::unordered_map<int, Anime> items;
|
|
12 int GetTotalAnimeAmount();
|
|
13 int GetTotalEpisodeAmount();
|
|
14 int GetTotalWatchedAmount();
|
|
15 int GetTotalPlannedAmount();
|
|
16 double GetAverageScore();
|
|
17 double GetScoreDeviation();
|
|
18 };
|
|
19
|
|
20 inline Database db;
|
|
21
|
|
22 } // namespace Anime
|
|
23 #endif // __core__anime_db_h
|