mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 18:00:06 +00:00 
			
		
		
		
	Radar site configuration
This commit is contained in:
		
							parent
							
								
									19efb0e58c
								
							
						
					
					
						commit
						883626ebf5
					
				
					 5 changed files with 63 additions and 1 deletions
				
			
		
							
								
								
									
										18
									
								
								wxdata/source/scwx/common/sites.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								wxdata/source/scwx/common/sites.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| #include <scwx/common/products.hpp> | ||||
| 
 | ||||
| #include <unordered_map> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace common | ||||
| { | ||||
| 
 | ||||
| std::string GetSiteId(const std::string& radarId) | ||||
| { | ||||
|    size_t      siteIdIndex = std::max<size_t>(radarId.length(), 3u) - 3u; | ||||
|    std::string siteId      = radarId.substr(siteIdIndex); | ||||
|    return siteId; | ||||
| } | ||||
| 
 | ||||
| } // namespace common
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat