No user visible change. This is needed for #105773, but will cause conflicts in the main branch, so committing it separately.
32 lines
778 B
C++
32 lines
778 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup asset_system
|
|
*
|
|
* \brief Information to uniquely identify and locate an asset.
|
|
*
|
|
* https://wiki.blender.org/wiki/Source/Architecture/Asset_System/Back_End#Asset_Identifier
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace blender::asset_system {
|
|
|
|
class AssetIdentifier {
|
|
std::shared_ptr<std::string> library_root_path_;
|
|
std::string relative_asset_path_;
|
|
|
|
public:
|
|
AssetIdentifier(std::shared_ptr<std::string> library_root_path, std::string relative_asset_path);
|
|
AssetIdentifier(AssetIdentifier &&) = default;
|
|
AssetIdentifier(const AssetIdentifier &) = default;
|
|
|
|
std::string full_path() const;
|
|
std::string full_library_path() const;
|
|
};
|
|
|
|
} // namespace blender::asset_system
|