#ifdef DCPOMATIC_VARIANT_SWAROOP
#include "encrypted_ecinema_kdm.h"
#endif
+#include "recipient_with_kdm.h"
#include <dcp/encrypted_kdm.h>
#include <dcp/name_format.h>
#include <boost/shared_ptr.hpp>
}
/** Simple class to collect a screen and an encrypted KDM */
-class ScreenWithKDM
+class ScreenWithKDM : public RecipientWithKDM
{
public:
ScreenWithKDM (boost::shared_ptr<dcpomatic::Screen> s)
virtual ~ScreenWithKDM () {}
- virtual std::string kdm_as_xml () const = 0;
- virtual void kdm_as_xml (boost::filesystem::path out) const = 0;
virtual std::string kdm_id () const = 0;
- static int write_files (
- std::list<boost::shared_ptr<ScreenWithKDM> > screen_kdms, boost::filesystem::path directory,
- dcp::NameFormat name_format, dcp::NameFormat::Map name_values,
- boost::function<bool (boost::filesystem::path)> confirm_overwrite
- );
+ void add_name_values (dcp::NameFormat::Map& values);
boost::shared_ptr<dcpomatic::Screen> screen;
};
return kdm.as_xml ();
}
- void kdm_as_xml (boost::filesystem::path out) const {
+ void kdm_as_xml_to_file (boost::filesystem::path out) const {
return kdm.as_xml (out);
}
return kdm.as_xml ();
}
- void kdm_as_xml (boost::filesystem::path out) const {
+ void kdm_as_xml_to_file (boost::filesystem::path out) const {
return kdm.as_xml (out);
}