10
|
1 #ifndef __core__anime_db_h
|
|
2 #define __core__anime_db_h
|
85
|
3
|
10
|
4 #include "core/anime.h"
|
76
|
5 #include <string>
|
10
|
6 #include <unordered_map>
|
|
7
|
|
8 namespace Anime {
|
|
9
|
|
10 class Database {
|
|
11 public:
|
|
12 std::unordered_map<int, Anime> items;
|
|
13 int GetTotalAnimeAmount();
|
|
14 int GetTotalEpisodeAmount();
|
|
15 int GetTotalWatchedAmount();
|
|
16 int GetTotalPlannedAmount();
|
|
17 double GetAverageScore();
|
|
18 double GetScoreDeviation();
|
|
19 int GetListsAnimeAmount(ListStatus status);
|
83
|
20 int GetAnimeFromTitle(const std::string& title);
|
10
|
21 };
|
|
22
|
11
|
23 extern Database db;
|
10
|
24
|
|
25 } // namespace Anime
|
85
|
26
|
|
27
|
10
|
28 #endif // __core__anime_db_h
|