Request available level 3 products

This commit is contained in:
Dan Paulat 2022-06-26 07:57:28 -05:00
parent d2597354b4
commit 12d8aaf8a6
5 changed files with 51 additions and 0 deletions

View file

@ -118,6 +118,24 @@ AwsLevel3DataProvider::GetTimePointFromKey(const std::string& key)
return time;
}
void AwsLevel3DataProvider::RequestAvailableProducts()
{
p->ListProducts();
}
std::vector<std::string> AwsLevel3DataProvider::GetAvailableProducts()
{
std::shared_lock readLock(productMutex_);
auto siteProductMap = productMap_.find(p->radarSite_);
if (siteProductMap != productMap_.cend())
{
return siteProductMap->second;
}
return {};
}
void AwsLevel3DataProvider::Impl::ListProducts()
{
std::shared_lock readLock(productMutex_);

View file

@ -22,5 +22,12 @@ NexradDataProvider::NexradDataProvider(NexradDataProvider&&) noexcept = default;
NexradDataProvider&
NexradDataProvider::operator=(NexradDataProvider&&) noexcept = default;
void NexradDataProvider::RequestAvailableProducts() {}
std::vector<std::string> NexradDataProvider::GetAvailableProducts()
{
return {};
}
} // namespace provider
} // namespace scwx