Store and allow access to the raw XML that is read in from
[libdcp.git] / src / interop_subtitle_asset.h
index 72cd0022445e69b9fffa443df9ce6c30525b5233..ba8b5edf16ef08cfda87b365178ec3217a2bce9c 100644 (file)
@@ -59,6 +59,9 @@ public:
                NoteHandler note
                ) const;
 
+       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;
+
        std::list<boost::shared_ptr<LoadFontNode> > load_font_nodes () const;
 
        void add_font (std::string load_id, boost::filesystem::path file);
@@ -105,10 +108,14 @@ public:
                return _movie_title;
        }
 
+       static std::string static_pkl_type (Standard) {
+               return "text/xml;asdcpKind=Subtitle";
+       }
+
 protected:
 
-       std::string pkl_type (Standard) const {
-               return "text/xml;asdcpKind=Subtitle";
+       std::string pkl_type (Standard s) const {
+               return static_pkl_type (s);
        }
 
 private: