Fix a couple of errors in Interop XML
[libdcp.git] / src / asset.h
index dbe3deba6d34f13c9f8586fee77953e6b142d970..773e3d48ae2fb9c2b060519b2620693db36107e9 100644 (file)
@@ -59,14 +59,13 @@ public:
 
        /** Write details of the asset to a CPL AssetList node.
         *  @param p Parent element.
-        *  @param i true to use the Interop standard, false for SMPTE.
         */
-       virtual void write_to_cpl (xmlpp::Element* p, bool i) const = 0;
+       virtual void write_to_cpl (xmlpp::Element* p) const = 0;
 
        /** Write details of the asset to a PKL AssetList node.
         *  @param p Parent node.
         */
-       void write_to_pkl (xmlpp::Node *) const;
+       void write_to_pkl (xmlpp::Node *, bool interop) const;
 
        /** Write details of the asset to a ASSETMAP stream.
         *  @param s Stream.
@@ -130,6 +129,9 @@ public:
        virtual bool equals (boost::shared_ptr<const Asset> other, EqualityOptions opt, boost::function<void (NoteType, std::string)>) const;
 
 protected:
+
+       /** @return Interop PKL asdcpKind for the &lt;Type&gt; tag e.g. Picture, Sound etc. */
+       virtual std::string asdcp_kind () const = 0;
        
        std::string digest () const;