mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:40:05 +00:00
AWS Level 3 Data Provider
This commit is contained in:
parent
c5c54fbfa2
commit
70b8f78eb5
7 changed files with 259 additions and 1 deletions
45
wxdata/include/scwx/provider/aws_level3_data_provider.hpp
Normal file
45
wxdata/include/scwx/provider/aws_level3_data_provider.hpp
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/provider/aws_nexrad_data_provider.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace provider
|
||||
{
|
||||
|
||||
/**
|
||||
* @brief AWS Level 3 Data Provider
|
||||
*/
|
||||
class AwsLevel3DataProvider : public AwsNexradDataProvider
|
||||
{
|
||||
public:
|
||||
explicit AwsLevel3DataProvider(const std::string& radarSite,
|
||||
const std::string& product);
|
||||
explicit AwsLevel3DataProvider(const std::string& radarSite,
|
||||
const std::string& product,
|
||||
const std::string& bucketName,
|
||||
const std::string& region);
|
||||
~AwsLevel3DataProvider();
|
||||
|
||||
AwsLevel3DataProvider(const AwsLevel3DataProvider&) = delete;
|
||||
AwsLevel3DataProvider& operator=(const AwsLevel3DataProvider&) = delete;
|
||||
|
||||
AwsLevel3DataProvider(AwsLevel3DataProvider&&) noexcept;
|
||||
AwsLevel3DataProvider& operator=(AwsLevel3DataProvider&&) noexcept;
|
||||
|
||||
std::chrono::system_clock::time_point
|
||||
GetTimePointByKey(const std::string& key) const;
|
||||
|
||||
static std::chrono::system_clock::time_point
|
||||
GetTimePointFromKey(const std::string& key);
|
||||
|
||||
protected:
|
||||
std::string GetPrefix(std::chrono::system_clock::time_point date);
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
std::unique_ptr<Impl> p;
|
||||
};
|
||||
|
||||
} // namespace provider
|
||||
} // namespace scwx
|
||||
|
|
@ -26,6 +26,10 @@ private:
|
|||
public:
|
||||
static std::shared_ptr<NexradDataProvider>
|
||||
CreateLevel2DataProvider(const std::string& radarSite);
|
||||
|
||||
static std::shared_ptr<NexradDataProvider>
|
||||
CreateLevel3DataProvider(const std::string& radarSite,
|
||||
const std::string& product);
|
||||
};
|
||||
|
||||
} // namespace provider
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue