#include <libxml++/libxml++.h>
using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
using boost::optional;
using namespace dcp;
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());
+ }
+}