10
|
1 #ifndef __core__anime_db_h
|
|
2 #define __core__anime_db_h
|
|
3 #include "core/anime.h"
|
76
|
4 #include <string>
|
10
|
5 #include <unordered_map>
|
|
6
|
|
7 namespace 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 int GetListsAnimeAmount(ListStatus status);
|
64
|
19 int GetAnimeFromTitle(std::string title);
|
10
|
20 };
|
|
21
|
11
|
22 extern Database db;
|
10
|
23
|
|
24 } // namespace Anime
|
|
25 #endif // __core__anime_db_h
|