mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 15:50:05 +00:00
Add initial AWS Level 2 Data Provider
This commit is contained in:
parent
bd68f1adbd
commit
1681b6772b
5 changed files with 214 additions and 0 deletions
40
wxdata/include/scwx/provider/aws_level2_data_provider.hpp
Normal file
40
wxdata/include/scwx/provider/aws_level2_data_provider.hpp
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/wsr88d/ar2v_file.hpp>
|
||||
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace provider
|
||||
{
|
||||
|
||||
class AwsLevel2DataProviderImpl;
|
||||
|
||||
class AwsLevel2DataProvider
|
||||
{
|
||||
public:
|
||||
explicit AwsLevel2DataProvider(const std::string& radarSite);
|
||||
explicit AwsLevel2DataProvider(const std::string& radarSite,
|
||||
const std::string& bucketName,
|
||||
const std::string& region);
|
||||
~AwsLevel2DataProvider();
|
||||
|
||||
AwsLevel2DataProvider(const AwsLevel2DataProvider&) = delete;
|
||||
AwsLevel2DataProvider& operator=(const AwsLevel2DataProvider&) = delete;
|
||||
|
||||
AwsLevel2DataProvider(AwsLevel2DataProvider&&) noexcept;
|
||||
AwsLevel2DataProvider& operator=(AwsLevel2DataProvider&&) noexcept;
|
||||
|
||||
void ListObjects(std::chrono::system_clock::time_point date);
|
||||
std::shared_ptr<wsr88d::Ar2vFile> LoadObjectByKey(const std::string& key);
|
||||
void Refresh();
|
||||
|
||||
private:
|
||||
std::unique_ptr<AwsLevel2DataProviderImpl> p;
|
||||
};
|
||||
|
||||
} // namespace provider
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue