Formatting iem_api_provider.cpp

This commit is contained in:
Dan Paulat 2025-02-18 23:24:27 -06:00
parent d63c2a3ef9
commit 46972e8769

View file

@ -32,13 +32,11 @@ public:
IemApiProvider::IemApiProvider() : p(std::make_unique<Impl>()) {} IemApiProvider::IemApiProvider() : p(std::make_unique<Impl>()) {}
IemApiProvider::~IemApiProvider() = default; IemApiProvider::~IemApiProvider() = default;
IemApiProvider::IemApiProvider(IemApiProvider&&) noexcept = IemApiProvider::IemApiProvider(IemApiProvider&&) noexcept = default;
default; IemApiProvider& IemApiProvider::operator=(IemApiProvider&&) noexcept = default;
IemApiProvider&
IemApiProvider::operator=(IemApiProvider&&) noexcept = default;
std::vector<std::string> IemApiProvider::ListTextProducts( std::vector<std::string>
std::chrono::sys_time<std::chrono::days> date, IemApiProvider::ListTextProducts(std::chrono::sys_time<std::chrono::days> date,
std::optional<std::string_view> cccc, std::optional<std::string_view> cccc,
std::optional<std::string_view> pil) std::optional<std::string_view> pil)
{ {
@ -137,8 +135,7 @@ std::vector<std::string> IemApiProvider::ListTextProducts(
} }
std::vector<std::shared_ptr<awips::TextProductFile>> std::vector<std::shared_ptr<awips::TextProductFile>>
IemApiProvider::LoadTextProducts( IemApiProvider::LoadTextProducts(const std::vector<std::string>& textProducts)
const std::vector<std::string>& textProducts)
{ {
auto parameters = cpr::Parameters {{"nolimit", "true"}}; auto parameters = cpr::Parameters {{"nolimit", "true"}};
@ -152,8 +149,7 @@ IemApiProvider::LoadTextProducts(
{ {
asyncResponses.emplace_back( asyncResponses.emplace_back(
productId, productId,
cpr::GetAsync( cpr::GetAsync(cpr::Url {endpointUrl + productId},
cpr::Url {endpointUrl + productId},
network::cpr::GetHeader(), network::cpr::GetHeader(),
parameters)); parameters));
} }