Radar site configuration

This commit is contained in:
Dan Paulat 2022-02-14 22:44:07 -06:00
parent 19efb0e58c
commit 883626ebf5
5 changed files with 63 additions and 1 deletions

View 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