comparison include/core/anime_db.h @ 173:de0a8d2f28b3

WILL NOT COMPILE: sample export ability for anime db
author Paper <mrpapersonic@gmail.com>
date Tue, 28 Nov 2023 13:53:54 -0500
parents c69230dc2b5d
children f88eda79c60a
comparison
equal deleted inserted replaced
172:45a0967485f1 173:de0a8d2f28b3
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 3
4 #include "core/anime.h" 4 #include "core/anime.h"
5 #include "core/json.h"
5 #include <string> 6 #include <string>
6 #include <unordered_map> 7 #include <unordered_map>
7 8
8 namespace Anime { 9 namespace Anime {
9 10
16 int GetTotalPlannedAmount(); 17 int GetTotalPlannedAmount();
17 double GetAverageScore(); 18 double GetAverageScore();
18 double GetScoreDeviation(); 19 double GetScoreDeviation();
19 int GetListsAnimeAmount(ListStatus status); 20 int GetListsAnimeAmount(ListStatus status);
20 int GetAnimeFromTitle(const std::string& title); 21 int GetAnimeFromTitle(const std::string& title);
22
23 bool GetDatabaseAsJSON(nlohmann::json& json);
21 }; 24 };
22 25
23 extern Database db; 26 extern Database db;
24 27
25 } // namespace Anime 28 } // namespace Anime