From 6c07edf8456801adde3cb0d9fce7f46daf466a40 Mon Sep 17 00:00:00 2001 From: Aaron Po Date: Sun, 19 Jul 2026 04:10:32 -0400 Subject: [PATCH] Formatted includes/services/curated_data --- .../curated_data/curated_data_service.h | 34 +++++------ .../curated_data/curated_json_data_service.h | 58 +++++++++---------- .../curated_data/mock_curated_data_service.h | 22 +++---- 3 files changed, 57 insertions(+), 57 deletions(-) diff --git a/tooling/pipeline/includes/services/curated_data/curated_data_service.h b/tooling/pipeline/includes/services/curated_data/curated_data_service.h index aaadbbd9..50799b32 100644 --- a/tooling/pipeline/includes/services/curated_data/curated_data_service.h +++ b/tooling/pipeline/includes/services/curated_data/curated_data_service.h @@ -25,26 +25,26 @@ using SurnamesByCountryMap = std::unordered_map; * brewery/user generation. */ class ICuratedDataService { - public: - ICuratedDataService() = default; - virtual ~ICuratedDataService() = default; + public: + ICuratedDataService() = default; + virtual ~ICuratedDataService() = default; - ICuratedDataService(const ICuratedDataService&) = delete; - ICuratedDataService& operator=(const ICuratedDataService&) = delete; - ICuratedDataService(ICuratedDataService&&) = delete; - ICuratedDataService& operator=(ICuratedDataService&&) = delete; + ICuratedDataService(const ICuratedDataService&) = delete; + ICuratedDataService& operator=(const ICuratedDataService&) = delete; + ICuratedDataService(ICuratedDataService&&) = delete; + ICuratedDataService& operator=(ICuratedDataService&&) = delete; - /** - * @brief Loads all curated location records. - */ - virtual const LocationsList& LoadLocations() = 0; + /** + * @brief Loads all curated location records. + */ + virtual const LocationsList& LoadLocations() = 0; - /** - * @brief Loads all curated persona records. - */ - virtual const PersonasList& LoadPersonas() = 0; - virtual const ForenamesByCountryMap& LoadForenamesByCountry() = 0; - virtual const SurnamesByCountryMap& LoadSurnamesByCountry() = 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_ diff --git a/tooling/pipeline/includes/services/curated_data/curated_json_data_service.h b/tooling/pipeline/includes/services/curated_data/curated_json_data_service.h index 687b881a..69fe4099 100644 --- a/tooling/pipeline/includes/services/curated_data/curated_json_data_service.h +++ b/tooling/pipeline/includes/services/curated_data/curated_json_data_service.h @@ -16,48 +16,48 @@ * CuratedJsonDataService. */ struct CuratedDataFilePaths { - std::filesystem::path locations_path; - std::filesystem::path personas_path; - std::filesystem::path forenames_path; - std::filesystem::path surnames_path; + std::filesystem::path locations_path; + std::filesystem::path personas_path; + std::filesystem::path forenames_path; + std::filesystem::path surnames_path; }; /** * @brief Loads curated location, persona, and name data from JSON files. */ class CuratedJsonDataService final : public ICuratedDataService { - struct cache { - LocationsList locations; - PersonasList personas; - ForenamesByCountryMap forenames_by_country; - SurnamesByCountryMap surnames_by_country; + struct cache { + LocationsList locations; + PersonasList personas; + ForenamesByCountryMap forenames_by_country; + SurnamesByCountryMap surnames_by_country; - cache() = default; - ~cache() = default; - }; + cache() = default; + ~cache() = default; + }; - CuratedDataFilePaths filepaths_; - cache cache_; + CuratedDataFilePaths filepaths_; + cache cache_; - public: - explicit CuratedJsonDataService(CuratedDataFilePaths filepaths); + public: + explicit CuratedJsonDataService(CuratedDataFilePaths filepaths); - /** - * @brief Parses a JSON array file and returns all location records. - */ - const LocationsList& LoadLocations() override; + /** + * @brief Parses a JSON array file and returns all location records. + */ + const LocationsList& LoadLocations() override; - /** - * @brief Parses a JSON array file and returns all persona records. - */ - const PersonasList& LoadPersonas() override; + /** + * @brief Parses a JSON array file and returns all persona records. + */ + const PersonasList& LoadPersonas() override; - const ForenamesByCountryMap& LoadForenamesByCountry() override; + const ForenamesByCountryMap& LoadForenamesByCountry() override; - /** - * @brief Parses a JSON file and returns all the forenames per country. - */ - const SurnamesByCountryMap& LoadSurnamesByCountry() override; + /** + * @brief Parses a JSON file and returns all the forenames per country. + */ + const SurnamesByCountryMap& LoadSurnamesByCountry() override; }; #endif // BIERGARTEN_PIPELINE_INCLUDES_JSON_HANDLING_JSON_LOADER_H_ diff --git a/tooling/pipeline/includes/services/curated_data/mock_curated_data_service.h b/tooling/pipeline/includes/services/curated_data/mock_curated_data_service.h index 53aa5ef9..bf1c1be5 100644 --- a/tooling/pipeline/includes/services/curated_data/mock_curated_data_service.h +++ b/tooling/pipeline/includes/services/curated_data/mock_curated_data_service.h @@ -17,22 +17,22 @@ * place of the JSON fixture files used by JsonLoader. */ class MockCuratedDataService final : public ICuratedDataService { - public: - MockCuratedDataService(); + public: + MockCuratedDataService(); - const LocationsList& LoadLocations() override; + const LocationsList& LoadLocations() override; - const PersonasList& LoadPersonas() override; + const PersonasList& LoadPersonas() override; - const ForenamesByCountryMap& LoadForenamesByCountry() override; + const ForenamesByCountryMap& LoadForenamesByCountry() override; - const SurnamesByCountryMap& LoadSurnamesByCountry() override; + const SurnamesByCountryMap& LoadSurnamesByCountry() override; - private: - LocationsList locations_; - PersonasList personas_; - ForenamesByCountryMap forenames_by_country_; - SurnamesByCountryMap surnames_by_country_; + private: + LocationsList locations_; + PersonasList personas_; + ForenamesByCountryMap forenames_by_country_; + SurnamesByCountryMap surnames_by_country_; }; #endif // BIERGARTEN_PIPELINE_INCLUDES_SERVICES_CURATED_DATA_MOCK_CURATED_DATA_SERVICE_H_