Mercurial > minori
view include/core/anime_db.h @ 102:b315f3759c56
*: big patch
1. use a wrapper for mINI that enables case sensitivity
(personal preference)
2. rename dark_theme.cc to theme.cc and change it to be
a class
3. include the "dep" folder so we don't have stupidity in
json.h or ini.h
4. I think the graph was also tweaked a lot in this, nothing
is constexpr and size is found at runtime...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Fri, 03 Nov 2023 21:32:52 -0400 |
parents | c69230dc2b5d |
children | de0a8d2f28b3 |
line wrap: on
line source
#ifndef __core__anime_db_h #define __core__anime_db_h #include "core/anime.h" #include <string> #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); int GetAnimeFromTitle(const std::string& title); }; extern Database db; } // namespace Anime #endif // __core__anime_db_h