mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 05:10:04 +00:00 
			
		
		
		
	Look for specific impact based warning tags in text products
This commit is contained in:
		
							parent
							
								
									60aed45450
								
							
						
					
					
						commit
						9437b0bfce
					
				
					 5 changed files with 109 additions and 10 deletions
				
			
		
							
								
								
									
										31
									
								
								wxdata/source/scwx/awips/impact_based_warnings.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								wxdata/source/scwx/awips/impact_based_warnings.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,31 @@ | |||
| #include <scwx/awips/impact_based_warnings.hpp> | ||||
| #include <scwx/util/enum.hpp> | ||||
| 
 | ||||
| #include <unordered_map> | ||||
| 
 | ||||
| #include <boost/algorithm/string.hpp> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
| namespace awips | ||||
| { | ||||
| 
 | ||||
| static const std::string logPrefix_ = "scwx::awips::impact_based_warnings"; | ||||
| 
 | ||||
| static const std::unordered_map<ThreatCategory, std::string> | ||||
|    threatCategoryName_ {{ThreatCategory::Base, "Base"}, | ||||
|                         {ThreatCategory::Significant, "Significant"}, | ||||
|                         {ThreatCategory::Considerable, "Considerable"}, | ||||
|                         {ThreatCategory::Destructive, "Destructive"}, | ||||
|                         {ThreatCategory::Catastrophic, "Catastrophic"}, | ||||
|                         {ThreatCategory::Unknown, "?"}}; | ||||
| 
 | ||||
| SCWX_GET_ENUM(ThreatCategory, GetThreatCategory, threatCategoryName_) | ||||
| 
 | ||||
| const std::string& GetThreatCategoryName(ThreatCategory threatCategory) | ||||
| { | ||||
|    return threatCategoryName_.at(threatCategory); | ||||
| } | ||||
| 
 | ||||
| } // namespace awips
 | ||||
| } // namespace scwx
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat