Blender
V3.3
|
Public Member Functions | |
AssetIndexFile (AssetLibraryIndex &library_index, BlendFile &asset_filename) | |
void | mark_as_used () |
const char * | get_file_path () const override |
bool | is_older_than (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) |
![]() | |
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 614 of file asset_indexer.cc.
|
inline |
Definition at line 624 of file asset_indexer.cc.
|
inline |
Check whether the index file contains entries without opening the file.
Definition at line 650 of file asset_indexer.cc.
Referenced by blender::ed::asset::index::read_index().
|
inline |
Definition at line 667 of file asset_indexer.cc.
References BLI_make_existing_file().
|
inlineoverridevirtual |
Implements blender::ed::asset::index::AbstractFile.
Definition at line 634 of file asset_indexer.cc.
Referenced by blender::ed::asset::index::update_index().
|
inline |
Returns whether the index file is older than the given asset file.
Definition at line 642 of file asset_indexer.cc.
References BLI_file_older(), and blender::ed::asset::index::BlendFile::get_file_path().
Referenced by blender::ed::asset::index::read_index().
|
inline |
Definition at line 629 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 656 of file asset_indexer.cc.
References blender::io::serialize::JsonFormatter::deserialize().
Referenced by blender::ed::asset::index::read_index().
|
inline |
Definition at line 674 of file asset_indexer.cc.
References CLOG_ERROR, blender::ed::asset::index::AssetIndex::contents, LOG, usdtokens::out(), 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 622 of file asset_indexer.cc.
Referenced by blender::ed::asset::index::read_index().
AssetLibraryIndex& blender::ed::asset::index::AssetIndexFile::library_index |
Definition at line 616 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 621 of file asset_indexer.cc.