X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fencrypted_ecinema_kdm.cc;h=f0502ab31ddde720d1e50f57dd7bfd444a79e2ac;hp=e4e19d7fb3de57426fd4707a0763b00cb2bb1864;hb=006e38346a8bcdcc889979b7c00802d9bb8fc6f8;hpb=6cde6bcc0b604c1a157a4ccbdce29e91f4d45a91 diff --git a/src/lib/encrypted_ecinema_kdm.cc b/src/lib/encrypted_ecinema_kdm.cc index e4e19d7fb..f0502ab31 100644 --- a/src/lib/encrypted_ecinema_kdm.cc +++ b/src/lib/encrypted_ecinema_kdm.cc @@ -22,6 +22,7 @@ #include "encrypted_ecinema_kdm.h" #include "exceptions.h" +#include "cross.h" #include #include #include @@ -85,4 +86,13 @@ EncryptedECinemaKDM::as_xml () const return document.write_to_string ("UTF-8"); } +void +EncryptedECinemaKDM::as_xml (boost::filesystem::path path) const +{ + FILE* f = fopen_boost (path, "w"); + string const x = as_xml (); + fwrite (x.c_str(), 1, x.length(), f); + fclose (f); +} + #endif