comparison include/core/anime_db.h @ 10:4b198a111713

Update things actually compile now btw qttest wants to fuck over the model but that might be my fault so /shrug
author Paper <mrpapersonic@gmail.com>
date Sat, 16 Sep 2023 02:06:01 -0400
parents 5c0397762b53
children fc1bf97c528b
comparison
equal deleted inserted replaced
9:5c0397762b53 10:4b198a111713
1 #ifndef __core__anime_db_h 1 #ifndef __core__anime_db_h
2 #define __core__anime_db_h 2 #define __core__anime_db_h
3 #include "core/anime.h"
3 #include <unordered_map> 4 #include <unordered_map>
4 5
5 namespace Anime { 6 namespace Anime {
6
7 class Anime;
8 7
9 class Database { 8 class Database {
10 public: 9 public:
11 std::unordered_map<int, Anime> items; 10 std::unordered_map<int, Anime> items;
12 int GetTotalAnimeAmount(); 11 int GetTotalAnimeAmount();
13 int GetTotalEpisodeAmount(); 12 int GetTotalEpisodeAmount();
14 int GetTotalWatchedAmount(); 13 int GetTotalWatchedAmount();
15 int GetTotalPlannedAmount(); 14 int GetTotalPlannedAmount();
16 double GetAverageScore(); 15 double GetAverageScore();
17 double GetScoreDeviation(); 16 double GetScoreDeviation();
17 int GetListsAnimeAmount(ListStatus status);
18 }; 18 };
19 19
20 inline Database db; 20 inline Database db;
21 21
22 } // namespace Anime 22 } // namespace Anime