Mercurial > minori
comparison include/core/anime_db.h @ 174:f88eda79c60a
anime/db: add some more json functionality, still doesn't compile :/
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 29 Nov 2023 13:53:56 -0500 |
parents | de0a8d2f28b3 |
children | 9b10175be389 |
comparison
equal
deleted
inserted
replaced
173:de0a8d2f28b3 | 174:f88eda79c60a |
---|---|
19 double GetScoreDeviation(); | 19 double GetScoreDeviation(); |
20 int GetListsAnimeAmount(ListStatus status); | 20 int GetListsAnimeAmount(ListStatus status); |
21 int GetAnimeFromTitle(const std::string& title); | 21 int GetAnimeFromTitle(const std::string& title); |
22 | 22 |
23 bool GetDatabaseAsJSON(nlohmann::json& json); | 23 bool GetDatabaseAsJSON(nlohmann::json& json); |
24 bool SaveDatabaseToDisk(); | |
25 | |
26 bool ParseDatabaseJSON(const nlohmann::json& json); | |
27 bool LoadDatabaseFromFile(); | |
28 | |
29 protected: | |
30 bool ParseAnimeInfoJSON(const nlohmann::json& json); | |
24 }; | 31 }; |
25 | 32 |
26 extern Database db; | 33 extern Database db; |
27 | 34 |
28 } // namespace Anime | 35 } // namespace Anime |