mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:50:05 +00:00
List available level 3 products
This commit is contained in:
parent
dd311327db
commit
05d795d18f
3 changed files with 95 additions and 7 deletions
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
#include <shared_mutex>
|
||||
|
||||
#include <aws/s3/S3Client.h>
|
||||
#include <aws/s3/model/GetObjectRequest.h>
|
||||
#include <aws/s3/model/ListObjectsV2Request.h>
|
||||
|
||||
|
|
@ -55,7 +54,7 @@ public:
|
|||
Aws::Client::ClientConfiguration config;
|
||||
config.region = region_;
|
||||
|
||||
client_ = std::make_unique<Aws::S3::S3Client>(config);
|
||||
client_ = std::make_shared<Aws::S3::S3Client>(config);
|
||||
}
|
||||
|
||||
~Impl() {}
|
||||
|
|
@ -68,7 +67,7 @@ public:
|
|||
std::string bucketName_;
|
||||
std::string region_;
|
||||
|
||||
std::unique_ptr<Aws::S3::S3Client> client_;
|
||||
std::shared_ptr<Aws::S3::S3Client> client_;
|
||||
|
||||
std::map<std::chrono::system_clock::time_point, ObjectRecord> objects_;
|
||||
std::shared_mutex objectsMutex_;
|
||||
|
|
@ -96,6 +95,11 @@ size_t AwsNexradDataProvider::cache_size() const
|
|||
return p->objects_.size();
|
||||
}
|
||||
|
||||
std::shared_ptr<Aws::S3::S3Client> AwsNexradDataProvider::client()
|
||||
{
|
||||
return p->client_;
|
||||
}
|
||||
|
||||
std::chrono::seconds AwsNexradDataProvider::update_period() const
|
||||
{
|
||||
return p->updatePeriod_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue