Changeset View
Changeset View
Standalone View
Standalone View
source/blender/asset_system/AS_asset_representation.hh
- This file was moved from source/blender/blenkernel/BKE_asset_representation.hh.
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||||
| /** \file | /** \file | ||||
| * \ingroup bke | * \ingroup asset_system | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include <memory> | #include <memory> | ||||
| #include <string> | #include <string> | ||||
| #include "BLI_string_ref.hh" | #include "BLI_string_ref.hh" | ||||
| struct AssetMetaData; | struct AssetMetaData; | ||||
| struct ID; | struct ID; | ||||
| namespace blender::bke { | namespace blender::asset_system { | ||||
| /** | /** | ||||
| * \brief Abstraction to reference an asset, with necessary data for display & interaction. | * \brief Abstraction to reference an asset, with necessary data for display & interaction. | ||||
| * | * | ||||
| * https://wiki.blender.org/wiki/Source/Architecture/Asset_System/Back_End#Asset_Representation | * https://wiki.blender.org/wiki/Source/Architecture/Asset_System/Back_End#Asset_Representation | ||||
| */ | */ | ||||
| class AssetRepresentation { | class AssetRepresentation { | ||||
| friend struct AssetLibrary; | friend struct AssetLibrary; | ||||
| Show All 30 Lines | public: | ||||
| AssetRepresentation &operator=(const AssetRepresentation &other) = delete; | AssetRepresentation &operator=(const AssetRepresentation &other) = delete; | ||||
| StringRefNull get_name() const; | StringRefNull get_name() const; | ||||
| AssetMetaData &get_metadata() const; | AssetMetaData &get_metadata() const; | ||||
| /** Returns if this asset is stored inside this current file, and as such fully editable. */ | /** Returns if this asset is stored inside this current file, and as such fully editable. */ | ||||
| bool is_local_id() const; | bool is_local_id() const; | ||||
| }; | }; | ||||
| } // namespace blender::bke | } // namespace blender::asset_system | ||||