Mercurial > minori
annotate include/core/anime_db.h @ 75:d3e9310598b1
*: refactor some stuff
text: "TextParagraph"s are now called sections, because that's the
actual word for it :P
text: new classes: Line and OneLineSection, solves many problems with
paragraphs that are only one line long (ex. going out of bounds)
http: reworked http stuff to allow threaded get requests, also moved it
to its own file to (hopefully) remove clutter
eventually I'll make a threaded post request method and use that in
the "basic" function
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 04 Oct 2023 01:42:30 -0400 |
parents | fe719c109dbc |
children | 3364fadc8a36 |
rev | line source |
---|---|
10 | 1 #ifndef __core__anime_db_h |
2 #define __core__anime_db_h | |
3 #include "core/anime.h" | |
4 #include <unordered_map> | |
64 | 5 #include <string> |
10 | 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 |