16 #ifndef ACSDKASSETSCOMMON_DOWNLOADSTREAM_H_ 17 #define ACSDKASSETSCOMMON_DOWNLOADSTREAM_H_ 25 namespace acsdkAssets {
40 static std::shared_ptr<DownloadStream>
create(
const std::string& path,
size_t expectedSize);
50 bool write(
const char* data,
size_t size);
69 mutable std::mutex m_mutex;
72 std::ofstream m_ostream;
75 size_t m_expectedSize;
78 size_t m_downloadedSize;
85 #endif // ACSDKASSETSCOMMON_DOWNLOADSTREAM_H_ virtual ~DownloadStream()
bool write(const char *data, size_t size)
::std::string string
Definition: gtest-port.h:1097
static std::shared_ptr< DownloadStream > create(const std::string &path, size_t expectedSize)
Definition: DownloadStream.h:32
bool downloadSucceeded() const
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36