|
Blender V4.3
|
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 517 of file asset_indexer.cc.
|
inline |
Definition at line 527 of file asset_indexer.cc.
|
inline |
Definition at line 532 of file asset_indexer.cc.
|
inline |
Check whether the index file contains entries without opening the file.
Definition at line 558 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 579 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 542 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 550 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 537 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 564 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 584 of file asset_indexer.cc.
References CLOG_ERROR, 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 525 of file asset_indexer.cc.
Referenced by get_file_path(), and blender::ed::asset::index::read_index().
| AssetLibraryIndex& blender::ed::asset::index::AssetIndexFile::library_index |
Definition at line 519 of file asset_indexer.cc.
| 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 524 of file asset_indexer.cc.
Referenced by constains_entries().