|
Blender V5.0
|
Inherits blender::ed::asset::index::AbstractFile.
Public Member Functions | |
| AssetIndexFile (AssetLibraryIndex &library_index, StringRef index_file_path) | |
| AssetIndexFile (AssetLibraryIndex &library_index, BlendFile &asset_filename) | |
| void | mark_as_used () |
| const char * | get_file_path () const override |
| bool | is_older_than (const BlendFile &asset_file) const |
| bool | constains_entries () const |
| std::unique_ptr< AssetIndex > | read_contents () const |
| bool | ensure_parent_path_exists () const |
| void | write_contents (AssetIndex &content) |
| Public Member Functions inherited from blender::ed::asset::index::AbstractFile | |
| virtual | ~AbstractFile ()=default |
| bool | exists () const |
| size_t | get_file_size () const |
Public Attributes | |
| AssetLibraryIndex & | library_index |
| const size_t | MIN_FILE_SIZE_WITH_ENTRIES = 32 |
| std::string | filename |
Definition at line 516 of file asset_indexer.cc.
|
inline |
Definition at line 526 of file asset_indexer.cc.
References filename, and library_index.
Referenced by AssetIndexFile().
|
inline |
Definition at line 531 of file asset_indexer.cc.
References AssetIndexFile(), and library_index.
|
inline |
Check whether the index file contains entries without opening the file.
Definition at line 557 of file asset_indexer.cc.
References blender::ed::asset::index::AbstractFile::get_file_size(), and MIN_FILE_SIZE_WITH_ENTRIES.
Referenced by blender::ed::asset::index::read_index(), and blender::ed::asset::index::AssetLibraryIndex::remove_broken_index_files().
|
inline |
Definition at line 578 of file asset_indexer.cc.
References BLI_file_ensure_parent_dir_exists(), and get_file_path().
Referenced by write_contents().
|
inlineoverridevirtual |
Implements blender::ed::asset::index::AbstractFile.
Definition at line 541 of file asset_indexer.cc.
References filename.
Referenced by ensure_parent_path_exists(), is_older_than(), blender::ed::asset::index::AssetLibraryIndex::remove_broken_index_files(), blender::ed::asset::index::update_index(), and write_contents().
|
inline |
Returns whether the index file is older than the given asset file.
Definition at line 549 of file asset_indexer.cc.
References BLI_file_older(), get_file_path(), and blender::ed::asset::index::BlendFile::get_file_path().
Referenced by blender::ed::asset::index::read_index().
|
inline |
Definition at line 536 of file asset_indexer.cc.
References blender::ed::asset::index::AssetLibraryIndex::mark_as_used().
Referenced by blender::ed::asset::index::read_index().
|
inline |
Definition at line 563 of file asset_indexer.cc.
References BLI_SCOPED_DEFER, and blender::io::serialize::JsonFormatter::deserialize().
Referenced by blender::ed::asset::index::read_index().
|
inline |
Definition at line 583 of file asset_indexer.cc.
References CLOG_ERROR, blender::ed::asset::index::AssetIndex::contents, ensure_parent_path_exists(), get_file_path(), LOG, and blender::io::serialize::JsonFormatter::serialize().
Referenced by blender::ed::asset::index::update_index().
| std::string blender::ed::asset::index::AssetIndexFile::filename |
Definition at line 524 of file asset_indexer.cc.
Referenced by AssetIndexFile(), get_file_path(), and blender::ed::asset::index::read_index().
| AssetLibraryIndex& blender::ed::asset::index::AssetIndexFile::library_index |
Definition at line 518 of file asset_indexer.cc.
Referenced by AssetIndexFile(), and AssetIndexFile().
| const size_t blender::ed::asset::index::AssetIndexFile::MIN_FILE_SIZE_WITH_ENTRIES = 32 |
Asset index files with a size smaller than this attribute would be considered to not contain any entries.
Definition at line 523 of file asset_indexer.cc.
Referenced by constains_entries().