summaryrefslogtreecommitdiff
path: root/src/asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-09-02 23:39:01 +0100
committerCarl Hetherington <cth@carlh.net>2018-09-02 23:39:01 +0100
commit8259e2771f85c33c531a83fe1a78668f158208da (patch)
tree5f1f83a1a269c7ef5a889ae5c2727d2360315896 /src/asset.h
parentf2f2a2afc393dcaee747b97173d71a622d05d910 (diff)
Hopefully-correct PKL and AssetMap when using Interop PNG subtitles.
Diffstat (limited to 'src/asset.h')
-rw-r--r--src/asset.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/asset.h b/src/asset.h
index f69be5a1..b6ab8fd2 100644
--- a/src/asset.h
+++ b/src/asset.h
@@ -76,9 +76,9 @@ public:
/** Write details of the asset to a ASSETMAP.
* @param node Parent node.
*/
- void write_to_assetmap (xmlpp::Node* node, boost::filesystem::path root) const;
+ virtual void write_to_assetmap (xmlpp::Node* node, boost::filesystem::path root) const;
- void add_to_pkl (boost::shared_ptr<PKL> pkl, boost::filesystem::path root) const;
+ virtual void add_to_pkl (boost::shared_ptr<PKL> pkl, boost::filesystem::path root) const;
/** @return the most recent disk file used to read or write this asset, if there is one */
boost::optional<boost::filesystem::path> file () const {
@@ -97,6 +97,8 @@ protected:
/** The most recent disk file used to read or write this asset */
mutable boost::optional<boost::filesystem::path> _file;
+ static void write_file_to_assetmap (xmlpp::Node* node, boost::filesystem::path root, boost::filesystem::path file, std::string id);
+
private:
friend struct ::asset_test;