Write PKL using libxml++ and sign them.
[libdcp.git] / src / asset.h
index 492f16be822e0a9f7125d7368dd8f31ad401ae67..5436e05cde27f76f7afdc178f1477e11ec5e00e4 100644 (file)
@@ -33,6 +33,10 @@ namespace ASDCP {
        class WriterInfo;
 }
 
+namespace xmlpp {
+       class Element;
+}
+
 namespace libdcp
 {
 
@@ -49,15 +53,17 @@ public:
         */
        Asset (std::string directory, std::string file_name = "");
 
-       /** Write details of the asset to a CPL stream.
-        *  @param s Stream.
+       virtual ~Asset() {}
+
+       /** Write details of the asset to a CPL AssetList node.
+        *  @param p Parent node.
         */
-       virtual void write_to_cpl (std::ostream& s) const = 0;
+       virtual void write_to_cpl (xmlpp::Element* p) const = 0;
 
-       /** Write details of the asset to a PKL stream.
-        *  @param s Stream.
+       /** Write details of the asset to a PKL AssetList node.
+        *  @param p Parent node.
         */
-       void write_to_pkl (std::ostream& s) const;
+       void write_to_pkl (xmlpp::Element* p) const;
 
        /** Write details of the asset to a ASSETMAP stream.
         *  @param s Stream.