6 #ifndef IMAGE_UPLOADER_H
7 #define IMAGE_UPLOADER_H
10 #include <aws/core/utils/threading/Executor.h>
11 #include <aws/transfer/TransferManager.h>
12 #include <aws/core/auth/AWSCredentials.h>
23 Aws::Auth::AWSCredentials credentials;
42 ImageUploader(
int uploadtype,
const std::string& endpointUrl,
const std::string& token,
53 const std::string& objectKey,
const std::chrono::milliseconds& interval);
63 std::atomic<bool> stopFlag_;
64 std::mutex uploadMutex_;
67 void uploadThread(
const std::string& imagePath,
const std::string& bucketName,
68 const std::string& objectKey,
const std::chrono::milliseconds& interval);
The HttpUploader class handles uploading files to an HTTP server.
Definition: http_uploader.h:36
Class for uploading images to AWS S3 in a separate thread.
Definition: objectuploader.h:34
bool startUploadThread(const std::string &imagePath, const std::string &bucketName, const std::string &objectKey, const std::chrono::milliseconds &interval)
Starts a thread that uploads the image to S3 in a loop at a specified interval.
ImageUploader(int uploadtype, const std::string &endpointUrl, const std::string &token, s3_client_config_t &s3_client_config)
Constructor to initialize the ImageUploader object.
void stopUploadThread()
Stops the running upload thread.
Defines the HttpUploader class for managing file uploads over HTTP.
Definition: objectuploader.h:21