Hopefully-correct PKL and AssetMap when using Interop PNG subtitles.
[libdcp.git] / src / asset.h
index f69be5a168f38c32c68ace428f389669408cc4ca..b6ab8fd26101fd48a41b628c59dceab8931266a8 100644 (file)
@@ -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;