Use an enum class for Marker.
[libdcp.git] / src / reel_mxf.cc
index f170157ec0465b4cf464f4d0139b01e492028c5f..71b4783634bea0ece0fb9183ac6d8712abb11295 100644 (file)
@@ -39,7 +39,7 @@
 #include <libxml++/libxml++.h>
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
 using boost::optional;
 using namespace dcp;
 
@@ -79,3 +79,13 @@ ReelMXF::mxf_equals (shared_ptr<const ReelMXF> other, EqualityOptions opt, NoteH
 
        return true;
 }
+
+
+void
+ReelMXF::write_to_cpl_mxf (xmlpp::Node* node) const
+{
+        if (key_id ()) {
+               xmlpp::Node* hash = find_child (node, "Hash");
+               node->add_child_before(hash, "KeyId")->add_child_text("urn:uuid:" + key_id().get());
+        }
+}