Refactoring phenomena info to impact based warnings header

This commit is contained in:
Dan Paulat 2024-09-15 23:54:21 -05:00
parent 9182d170de
commit 829d8a3152
3 changed files with 44 additions and 31 deletions

View file

@ -1,6 +1,9 @@
#pragma once
#include <scwx/awips/phenomenon.hpp>
#include <string>
#include <vector>
namespace scwx
{
@ -17,6 +20,15 @@ enum class ThreatCategory : int
Unknown
};
struct PhenomenonInfo
{
bool hasObservedTag_ {false};
bool hasTornadoPossibleTag_ {false};
std::vector<ThreatCategory> threatCategories_ {ThreatCategory::Base};
};
const PhenomenonInfo& GetPhenomenonInfo(Phenomenon phenomenon);
ThreatCategory GetThreatCategory(const std::string& name);
const std::string& GetThreatCategoryName(ThreatCategory threatCategory);