#ifndef BIERGARTEN_PIPELINE_INCLUDES_SERVICES_CURATED_DATA_CURATED_DATA_SERVICE_H_ #define BIERGARTEN_PIPELINE_INCLUDES_SERVICES_CURATED_DATA_CURATED_DATA_SERVICE_H_ /** * @file services/curated_data/curated_data_service.h * @brief Abstraction for loading curated location, persona, and name data. */ #include #include #include #include #include "data_model/models.h" using ForenameList = std::vector; using SurnameList = std::vector; using CityList = std::vector; using PersonasList = std::vector; using ForenamesByCountryMap = std::unordered_map; using SurnamesByCountryMap = std::unordered_map; /** * @brief Interface for services that load curated data used to seed * brewery/user generation. */ class ICuratedDataService { public: ICuratedDataService() = default; virtual ~ICuratedDataService() = default; ICuratedDataService(const ICuratedDataService&) = delete; ICuratedDataService& operator=(const ICuratedDataService&) = delete; ICuratedDataService(ICuratedDataService&&) = delete; ICuratedDataService& operator=(ICuratedDataService&&) = delete; /** * @brief Loads all curated location records. */ virtual const CityList& LoadCities() = 0; /** * @brief Loads all curated persona records. */ virtual const PersonasList& LoadPersonas() = 0; virtual const ForenamesByCountryMap& LoadForenamesByCountry() = 0; virtual const SurnamesByCountryMap& LoadSurnamesByCountry() = 0; }; #endif // BIERGARTEN_PIPELINE_INCLUDES_SERVICES_CURATED_DATA_CURATED_DATA_SERVICE_H_