Blender V5.3
ED_asset_indexer.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <filesystem>
12#include <optional>
13
14#include "BLI_function_ref.hh"
15#include "BLI_utility_mixins.hh"
16
18#include "AS_remote_library.hh"
19
20#include "ED_file_indexer.hh"
21
22namespace blender {
23class StringRefNull;
24} // namespace blender
25
27
46
70
78 std::string local_path;
81
89 std::optional<asset_system::RemoteAssetFileStatus> file_status;
90};
91
94/* Uses #std::filesystem::file_time_type because it needs to be compared against file time-stamps,
95 * which may have low precision (often just 1 sec). */
96using Timestamp = std::filesystem::file_time_type;
105bool read_remote_listing(StringRefNull root_dirpath,
106 StringRefNull asset_library_name,
107 ReportList &reports,
109 RemoteListingWaitForPagesFn wait_fn = nullptr,
110 std::optional<Timestamp> ignore_before_timestamp = std::nullopt);
111
112} // namespace blender::ed::asset::index
NonCopyable(const NonCopyable &other)=delete
std::filesystem::file_time_type Timestamp
FunctionRef< bool(RemoteListingAssetEntry &)> RemoteListingEntryProcessFn
FunctionRef< bool()> RemoteListingWaitForPagesFn
bool read_remote_listing(StringRefNull root_dirpath, StringRefNull asset_library_name, ReportList &reports, RemoteListingEntryProcessFn process_fn, RemoteListingWaitForPagesFn wait_fn=nullptr, std::optional< Timestamp > ignore_before_timestamp=std::nullopt)
const FileIndexerType file_indexer_asset
BMesh Iterators.
__int64 int64_t
Definition BKE_text.h:90
asset_system::RemoteAssetFileStatus remote_file_status
RemoteListingAssetEntry & operator=(RemoteListingAssetEntry &&)
std::optional< asset_system::RemoteAssetFileStatus > file_status