Enable loading of product by double clicking in the resource explorer

- Doesn't work if radar product manager is expired for the site (time not present in record map)
- Need to fix going back to expired (garbage collected) live data
This commit is contained in:
Dan Paulat 2023-04-10 23:17:21 -05:00
parent 0c8047b1f4
commit 92bb5154a4
4 changed files with 81 additions and 7 deletions

View file

@ -41,12 +41,23 @@ public:
common::RadarProductGroup GetRadarProductGroup() const;
std::string GetRadarProductName() const;
std::shared_ptr<config::RadarSite> GetRadarSite() const;
uint16_t GetVcp() const;
std::uint16_t GetVcp() const;
void SelectElevation(float elevation);
/**
* @brief Selects a radar product.
*
* @param [in] group Radar product group
* @param [in] product Radar product name
* @param [in] productCode Radar product code (optional)
* @paran [in] time Product time. Default is the latest available.
*/
void SelectRadarProduct(common::RadarProductGroup group,
const std::string& product,
int16_t productCode);
std::int16_t productCode = 0,
std::chrono::system_clock::time_point time = {});
void SelectRadarProduct(std::shared_ptr<types::RadarProductRecord> record);
/**