Add GetCounties to county database

- Also remove mutex, as the database is only modified on initialization
This commit is contained in:
Dan Paulat 2023-12-06 06:20:00 -06:00
parent 7cf2121b8e
commit bcc7391a19
3 changed files with 80 additions and 16 deletions

View file

@ -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