Blender V5.0
blender::asset_system::tests::TestableAssetCatalogService Class Reference

Inherits blender::asset_system::AssetCatalogService.

Public Member Functions

 TestableAssetCatalogService ()=default
 TestableAssetCatalogService (const CatalogFilePath &asset_library_root)
const AssetCatalogDefinitionFileget_catalog_definition_file ()
const OwningAssetCatalogMapget_deleted_catalogs () const
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::asset_system::AssetCatalogService
 AssetCatalogService (const CatalogFilePath &asset_library_root={})
 AssetCatalogService (read_only_tag)
void tag_has_unsaved_changes (AssetCatalog *edited_catalog=nullptr)
bool has_unsaved_changes () const
bool is_read_only () const
void load_from_disk ()
void load_from_disk (const CatalogFilePath &file_or_directory_path)
void add_from_existing (const AssetCatalogService &other_service, FunctionRef< void(const AssetCatalog &existing, const AssetCatalog &to_be_ignored)> on_duplicate_items)
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)
const AssetCatalogTreecatalog_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::asset_system::AssetCatalogService
static const CatalogFilePath DEFAULT_CATALOG_FILENAME = "blender_assets.cats.txt"
Protected Member Functions inherited from blender::asset_system::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) const
std::unique_ptr< AssetCatalogTreeread_into_tree () const
void invalidate_catalog_tree ()
void create_missing_catalogs ()
void tag_all_catalogs_as_unsaved_changes ()
const AssetCatalogDefinitionFileget_catalog_definition_file () const
const OwningAssetCatalogMapget_catalogs () const
const OwningAssetCatalogMapget_deleted_catalogs () const
Static Protected Member Functions inherited from blender::asset_system::AssetCatalogService
static CatalogFilePath find_suitable_cdf_path_for_writing (const CatalogFilePath &blend_file_path)

Detailed Description

Definition at line 40 of file asset_catalog_test.cc.

Constructor & Destructor Documentation

◆ TestableAssetCatalogService() [1/2]

blender::asset_system::tests::TestableAssetCatalogService::TestableAssetCatalogService ( )
default

◆ TestableAssetCatalogService() [2/2]

blender::asset_system::tests::TestableAssetCatalogService::TestableAssetCatalogService ( const CatalogFilePath & asset_library_root)
inlineexplicit

Member Function Documentation

◆ count_catalogs_with_path()

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

◆ create_missing_catalogs()

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

◆ delete_catalog_by_id_soft()

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

◆ get_catalog_definition_file()

◆ get_deleted_catalogs()

const OwningAssetCatalogMap & blender::asset_system::tests::TestableAssetCatalogService::get_deleted_catalogs ( ) const
inline

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