Mercurial > minori
diff 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 |
line wrap: on
line diff
--- a/include/core/anime_db.h Sun Sep 10 03:59:16 2023 -0400 +++ b/include/core/anime_db.h Sat Sep 16 02:06:01 2023 -0400 @@ -1,23 +1,23 @@ -#ifndef __core__anime_db_h -#define __core__anime_db_h -#include <unordered_map> - -namespace Anime { - -class Anime; - -class Database { - public: - std::unordered_map<int, Anime> items; - int GetTotalAnimeAmount(); - int GetTotalEpisodeAmount(); - int GetTotalWatchedAmount(); - int GetTotalPlannedAmount(); - double GetAverageScore(); - double GetScoreDeviation(); -}; - -inline Database db; - -} // namespace Anime -#endif // __core__anime_db_h +#ifndef __core__anime_db_h +#define __core__anime_db_h +#include "core/anime.h" +#include <unordered_map> + +namespace Anime { + +class Database { + public: + std::unordered_map<int, Anime> items; + int GetTotalAnimeAmount(); + int GetTotalEpisodeAmount(); + int GetTotalWatchedAmount(); + int GetTotalPlannedAmount(); + double GetAverageScore(); + double GetScoreDeviation(); + int GetListsAnimeAmount(ListStatus status); +}; + +inline Database db; + +} // namespace Anime +#endif // __core__anime_db_h