 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
15 #include <string_view>
21 bool IsURI(
const std::string& uri);
23 #ifdef COLMAP_DOWNLOAD_ENABLED
29 using DownloadProgressCallback =
30 std::function<void(int64_t downloaded, int64_t total)>;
38 std::optional<std::string> DownloadFile(
39 const std::string& url,
40 DownloadProgressCallback progress_callback =
nullptr);
43 std::string ComputeSHA256(
const std::string_view& str);
51 std::string DownloadAndCacheFile(
52 const std::string& uri,
53 DownloadProgressCallback progress_callback =
nullptr);
58 #endif // COLMAP_DOWNLOAD_ENABLED
QTextStream & endl(QTextStream &stream)
Definition: QtCompat.h:718
std::filesystem::path MaybeDownloadAndCacheFile(const std::string &uri)
int size
Definition: FileIOFactory.cpp:130
std::filesystem::path GetCachedFilePath(const std::string &uri)
static const std::string path
Definition: PointCloud.cpp:59
std::function< void(std::shared_ptr< core::Tensor >)> callback
Definition: FilamentRenderer.cpp:183
bool IsURI(const std::string &uri)
std::vector< std::string > StringSplit(const std::string &str, const std::string &delim)
Definition: string.cc:166
constexpr nullopt_t nullopt
Definition: Optional.h:136
void WriteBinaryBlob(const std::string &path, const std::vector< T > &data)
Definition: misc.h:171
Definition: AutomaticReconstructionController.h:17
void ReadBinaryBlob(const std::string &path, std::vector< T > *data)
Definition: misc.h:159
bool StringStartsWith(const std::string &str, const std::string &prefix)
Definition: string.cc:173
std::string name
Definition: FileIOFactory.cpp:129