Blender V4.3
blender::asset_system::AssetLibraryService::ExplodedPath Struct Reference

#include <asset_library_service.hh>

Public Attributes

std::unique_ptr< std::string > full_path
 
StringRef dir_component = ""
 
StringRef group_component = ""
 
StringRef name_component = ""
 

Detailed Description

Struct to hold results from path explosion functions (resolve_asset_weak_reference_to_exploded_path()).

Definition at line 129 of file asset_library_service.hh.

Member Data Documentation

◆ dir_component

StringRef blender::asset_system::AssetLibraryService::ExplodedPath::dir_component = ""

Reference into the part of full_path that is the library directory path. That is, it ends with the library .blend file ("directory" is misleading).

Definition at line 135 of file asset_library_service.hh.

Referenced by blender::asset_system::AssetLibraryService::resolve_asset_weak_reference_to_exploded_path().

◆ full_path

std::unique_ptr<std::string> blender::asset_system::AssetLibraryService::ExplodedPath::full_path

The string buffer containing the fully resolved path, if resolving was successful. Pointer so that the contained string address doesn't change when moving this object.

Definition at line 132 of file asset_library_service.hh.

Referenced by blender::asset_system::AssetLibraryService::resolve_asset_weak_reference_to_exploded_path().

◆ group_component

StringRef blender::asset_system::AssetLibraryService::ExplodedPath::group_component = ""

Reference into the part of full_path that is the ID group name ("Object", "Material", "Brush", ...).

Definition at line 138 of file asset_library_service.hh.

Referenced by blender::asset_system::AssetLibraryService::resolve_asset_weak_reference_to_exploded_path().

◆ name_component

StringRef blender::asset_system::AssetLibraryService::ExplodedPath::name_component = ""

Reference into the part of full_path that is the ID name.

Definition at line 140 of file asset_library_service.hh.

Referenced by blender::asset_system::AssetLibraryService::resolve_asset_weak_reference_to_exploded_path().


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