coastline 0.0.4
Loading...
Searching...
No Matches
importjobs.h
Go to the documentation of this file.
1#pragma once
2
3#include <functional>
4#include <optional>
5#include <span>
6#include <string>
7
8#include "importer.h"
9
10namespace coastline {
11
18
32 const ImportProgress &progress = {});
33
34} // 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 > RunImportJobs(std::span< const ImportJob > jobs, const ImportProgress &progress={})
Run independent jobs with at most four workers, limited by available CPU concurrency.
std::function< std::optional< std::string >(const ImportProgress &)> ImportJob
Independent import work in a private destination directory.
Definition importjobs.h:17