coastline 0.0.4
Loading...
Searching...
No Matches
download.h
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4#include <optional>
5#include <string>
6
7#include "importer.h"
8
9namespace coastline {
10
20 const std::filesystem::path &output,
21 const ImportProgress &progress = {});
22
23} // namespace coastline
Definition assetimport.h:11
std::function< bool(const std::string &step, double fraction)> ImportProgress
Reports import progress with a description and a fraction from 0 to 1.
Definition importer.h:27
std::optional< std::string > DownloadFile(const std::string &url, const std::filesystem::path &output, const ImportProgress &progress={})
Download an HTTPS URL to a file with the HTTP client of the operating system, following redirects.