mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 13:30:06 +00:00
Refactoring phenomena info to impact based warnings header
This commit is contained in:
parent
9182d170de
commit
829d8a3152
3 changed files with 44 additions and 31 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue