Blender  V3.3
Public Member Functions | List of all members
blender::bke::tests::TestableAssetCatalogService Class Reference
Inheritance diagram for blender::bke::tests::TestableAssetCatalogService:
blender::bke::AssetCatalogService

Public Member Functions

 TestableAssetCatalogService ()=default
 
 TestableAssetCatalogService (const CatalogFilePath &asset_library_root)
 
AssetCatalogDefinitionFileget_catalog_definition_file ()
 
OwningAssetCatalogMapget_deleted_catalogs ()
 
void create_missing_catalogs ()
 
void delete_catalog_by_id_soft (CatalogID catalog_id)
 
int64_t count_catalogs_with_path (const CatalogFilePath &path)
 
- Public Member Functions inherited from blender::bke::AssetCatalogService
 AssetCatalogService ()
 
 AssetCatalogService (const CatalogFilePath &asset_library_root)
 
void tag_has_unsaved_changes (AssetCatalog *edited_catalog)
 
bool has_unsaved_changes () const
 
void load_from_disk ()
 
void load_from_disk (const CatalogFilePath &file_or_directory_path)
 
bool write_to_disk (const CatalogFilePath &blend_file_path)
 
void prepare_to_merge_on_write ()
 
void reload_catalogs ()
 
AssetCatalogfind_catalog (CatalogID catalog_id) const
 
AssetCatalogfind_catalog_by_path (const AssetCatalogPath &path) const
 
bool is_catalog_known (CatalogID catalog_id) const
 
AssetCatalogFilter create_catalog_filter (CatalogID active_catalog_id) const
 
AssetCatalogcreate_catalog (const AssetCatalogPath &catalog_path)
 
void prune_catalogs_by_path (const AssetCatalogPath &path)
 
void prune_catalogs_by_id (CatalogID catalog_id)
 
void update_catalog_path (CatalogID catalog_id, const AssetCatalogPath &new_catalog_path)
 
AssetCatalogTreeget_catalog_tree ()
 
bool is_empty () const
 
void undo_push ()
 
void undo ()
 
bool is_undo_possbile () const
 
void redo ()
 
bool is_redo_possbile () const
 

Additional Inherited Members

- Static Public Attributes inherited from blender::bke::AssetCatalogService
static const CatalogFilePath DEFAULT_CATALOG_FILENAME = "blender_assets.cats.txt"
 
- Protected Member Functions inherited from blender::bke::AssetCatalogService
void load_directory_recursive (const CatalogFilePath &directory_path)
 
void load_single_file (const CatalogFilePath &catalog_definition_file_path)
 
bool write_to_disk_ex (const CatalogFilePath &blend_file_path)
 
void untag_has_unsaved_changes ()
 
bool is_catalog_known_with_unsaved_changes (CatalogID catalog_id) const
 
void purge_catalogs_not_listed (const Set< CatalogID > &catalogs_to_keep)
 
void delete_catalog_by_id_soft (CatalogID catalog_id)
 
void delete_catalog_by_id_hard (CatalogID catalog_id)
 
std::unique_ptr< AssetCatalogDefinitionFileparse_catalog_file (const CatalogFilePath &catalog_definition_file_path)
 
std::unique_ptr< AssetCatalogDefinitionFileconstruct_cdf_in_memory (const CatalogFilePath &file_path)
 
std::unique_ptr< AssetCatalogTreeread_into_tree ()
 
void rebuild_tree ()
 
void create_missing_catalogs ()
 
void tag_all_catalogs_as_unsaved_changes ()
 
AssetCatalogDefinitionFileget_catalog_definition_file ()
 
OwningAssetCatalogMapget_catalogs ()
 
OwningAssetCatalogMapget_deleted_catalogs ()
 
- Static Protected Member Functions inherited from blender::bke::AssetCatalogService
static CatalogFilePath find_suitable_cdf_path_for_writing (const CatalogFilePath &blend_file_path)
 
- Protected Attributes inherited from blender::bke::AssetCatalogService
std::unique_ptr< AssetCatalogCollectioncatalog_collection_
 
std::unique_ptr< AssetCatalogTreecatalog_tree_ = std::make_unique<AssetCatalogTree>()
 
CatalogFilePath asset_library_root_
 
Vector< std::unique_ptr< AssetCatalogCollection > > undo_snapshots_
 
Vector< std::unique_ptr< AssetCatalogCollection > > redo_snapshots_
 

Detailed Description

Definition at line 36 of file asset_catalog_test.cc.

Constructor & Destructor Documentation

◆ TestableAssetCatalogService() [1/2]

blender::bke::tests::TestableAssetCatalogService::TestableAssetCatalogService ( )
default

◆ TestableAssetCatalogService() [2/2]

blender::bke::tests::TestableAssetCatalogService::TestableAssetCatalogService ( const CatalogFilePath asset_library_root)
inlineexplicit

Definition at line 40 of file asset_catalog_test.cc.

Member Function Documentation

◆ count_catalogs_with_path()

int64_t blender::bke::tests::TestableAssetCatalogService::count_catalogs_with_path ( const CatalogFilePath path)
inline

◆ create_missing_catalogs()

void blender::bke::tests::TestableAssetCatalogService::create_missing_catalogs ( )
inline

◆ delete_catalog_by_id_soft()

void blender::bke::tests::TestableAssetCatalogService::delete_catalog_by_id_soft ( CatalogID  catalog_id)
inline

◆ get_catalog_definition_file()

AssetCatalogDefinitionFile* blender::bke::tests::TestableAssetCatalogService::get_catalog_definition_file ( )
inline

◆ get_deleted_catalogs()

OwningAssetCatalogMap& blender::bke::tests::TestableAssetCatalogService::get_deleted_catalogs ( )
inline

The documentation for this class was generated from the following file: