mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 04:00:05 +00:00
Add GetCounties to county database
- Also remove mutex, as the database is only modified on initialization
This commit is contained in:
parent
7cf2121b8e
commit
bcc7391a19
3 changed files with 80 additions and 16 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
namespace scwx
|
||||
|
|
@ -15,6 +16,8 @@ namespace CountyDatabase
|
|||
|
||||
void Initialize();
|
||||
std::string GetCountyName(const std::string& id);
|
||||
std::unordered_map<std::string, std::string>
|
||||
GetCounties(const std::string& state);
|
||||
|
||||
} // namespace CountyDatabase
|
||||
} // namespace config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue