supercell-wx/wxdata/include/scwx/provider/warnings_provider.hpp
2025-05-04 23:10:18 -05:00

31 lines
706 B
C++

#pragma once
#include <scwx/awips/text_product_file.hpp>
namespace scwx::provider
{
/**
* @brief Warnings Provider
*/
class WarningsProvider
{
public:
explicit WarningsProvider(const std::string& baseUrl);
~WarningsProvider();
WarningsProvider(const WarningsProvider&) = delete;
WarningsProvider& operator=(const WarningsProvider&) = delete;
WarningsProvider(WarningsProvider&&) noexcept;
WarningsProvider& operator=(WarningsProvider&&) noexcept;
std::vector<std::shared_ptr<awips::TextProductFile>>
LoadUpdatedFiles(std::chrono::sys_time<std::chrono::hours> newerThan = {});
private:
class Impl;
std::unique_ptr<Impl> p;
};
} // namespace scwx::provider