mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:50:06 +00:00 
			
		
		
		
	Added enable support and sorted keys for WFO audio method
This commit is contained in:
		
							parent
							
								
									bf24dac317
								
							
						
					
					
						commit
						12f84d7d22
					
				
					 3 changed files with 30 additions and 3 deletions
				
			
		|  | @ -31,7 +31,7 @@ typedef std::unordered_map<char, StateMap>           FormatMap; | |||
| static bool                                         initialized_ {false}; | ||||
| static FormatMap                                    countyDatabase_; | ||||
| static std::unordered_map<std::string, std::string> stateMap_; | ||||
| static std::unordered_map<std::string, std::string> wfoMap_; | ||||
| static std::map<std::string, std::string> wfoMap_; | ||||
| 
 | ||||
| void Initialize() | ||||
| { | ||||
|  | @ -264,7 +264,7 @@ const std::unordered_map<std::string, std::string>& GetStates() | |||
|    return stateMap_; | ||||
| } | ||||
| 
 | ||||
| const std::unordered_map<std::string, std::string>& GetWFOs() | ||||
| const std::map<std::string, std::string>& GetWFOs() | ||||
| { | ||||
|    return wfoMap_; | ||||
| } | ||||
|  |  | |||
|  | @ -4,6 +4,7 @@ | |||
| #include <string> | ||||
| #include <unordered_map> | ||||
| #include <vector> | ||||
| #include <map> | ||||
| 
 | ||||
| namespace scwx | ||||
| { | ||||
|  | @ -19,7 +20,7 @@ std::string GetCountyName(const std::string& id); | |||
| std::unordered_map<std::string, std::string> | ||||
| GetCounties(const std::string& state); | ||||
| const std::unordered_map<std::string, std::string>& GetStates(); | ||||
| const std::unordered_map<std::string, std::string>& GetWFOs(); | ||||
| const std::map<std::string, std::string>& GetWFOs(); | ||||
| const std::string& GetWFOName(const std::string& wfoId); | ||||
| 
 | ||||
| } // namespace CountyDatabase
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak