mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-06-01 01:54:00 +00:00
24 lines
797 B
C++
24 lines
797 B
C++
/**
|
|
* @file biergarten_data_generator/log_results.cpp
|
|
* @brief BiergartenDataGenerator::LogResults() implementation.
|
|
*/
|
|
|
|
#include <spdlog/spdlog.h>
|
|
|
|
#include "biergarten_data_generator.h"
|
|
|
|
void BiergartenDataGenerator::LogResults() const {
|
|
spdlog::info("\n=== GENERATED DATA DUMP ===");
|
|
size_t index = 1;
|
|
for (const auto& [location, brewery] : generatedBreweries_) {
|
|
spdlog::info(
|
|
"{}. city=\"{}\" country=\"{}\" state=\"{}\" "
|
|
"iso3166_2={} lat={} lon={}",
|
|
index, location.city, location.country, location.state_province,
|
|
location.iso3166_2, location.latitude, location.longitude);
|
|
spdlog::info(" brewery_name=\"{}\"", brewery.name);
|
|
spdlog::info(" brewery_description=\"{}\"", brewery.description);
|
|
++index;
|
|
}
|
|
}
|