summaryrefslogtreecommitdiff
path: root/src/rating.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-03-01 17:06:26 +0100
committerCarl Hetherington <cth@carlh.net>2022-03-03 21:58:31 +0100
commite375fdddf7cc608eefdc054d74e90bb95d573172 (patch)
treeeca3e5b384efdafa184610fae0f30f1898076f98 /src/rating.h
parente61267217a8ca7e65ad42bf34b6488b92eca6389 (diff)
Add lists of ratings.v1.8.9
Diffstat (limited to 'src/rating.h')
-rw-r--r--src/rating.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/rating.h b/src/rating.h
index 0fb912b3..cd6ce520 100644
--- a/src/rating.h
+++ b/src/rating.h
@@ -69,6 +69,33 @@ public:
extern bool operator== (Rating const & a, Rating const & b);
+class RatingSystem
+{
+public:
+ RatingSystem (std::string agency_, std::string name_, std::string country_and_region_names_, std::string country_code_)
+ : agency(agency_)
+ , name(name_)
+ , country_and_region_names(country_and_region_names_)
+ , country_code(country_code_)
+ {}
+
+ /** URI of the agency issuing the rating */
+ std::string agency;
+ /** Name of the rating system */
+ std::string name;
+ /** Country name, possibly followed by a slash and a region name */
+ std::string country_and_region_names;
+ /** Country code */
+ std::string country_code;
+
+ std::vector<Rating> ratings;
+};
+
+
+std::vector<RatingSystem> rating_systems();
+
+void load_rating_list(boost::filesystem::path ratings_file);
+
}