From c1d782e29c4fd0ae6de7a3c5b0f47833580293bd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 24 Apr 2022 21:39:42 +0200 Subject: wip: add AssetMap and fix everything up. --- src/asset.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/asset.h') diff --git a/src/asset.h b/src/asset.h index 88c7d1d1..3af49119 100644 --- a/src/asset.h +++ b/src/asset.h @@ -60,6 +60,9 @@ struct asset_test; namespace dcp { +class AssetMap; + + /** @class Asset * @brief Parent class for DCP assets, i.e. picture, sound, subtitles, closed captions, CPLs, fonts * @@ -89,7 +92,7 @@ public: NoteHandler note ) const; - virtual void write_to_assetmap (xmlpp::Node* node, boost::filesystem::path root) const; + virtual void add_to_assetmap (AssetMap& asset_map, boost::filesystem::path root) const; virtual void add_to_pkl (std::shared_ptr pkl, boost::filesystem::path root) const; @@ -121,7 +124,7 @@ protected: /** The most recent disk file used to read or write this asset */ mutable boost::optional _file; - static void write_file_to_assetmap (xmlpp::Node* node, boost::filesystem::path root, boost::filesystem::path file, std::string id); + static void add_file_to_assetmap (AssetMap& asset_map, boost::filesystem::path root, boost::filesystem::path file, std::string id); private: friend struct ::asset_test; -- cgit v1.2.3