mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:40:05 +00:00 
			
		
		
		
	Request available level 3 products
This commit is contained in:
		
							parent
							
								
									d2597354b4
								
							
						
					
					
						commit
						12d8aaf8a6
					
				
					 5 changed files with 51 additions and 0 deletions
				
			
		|  | @ -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_); | ||||
|  |  | |||
|  | @ -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
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat