#include "kdm_with_metadata.h"
#include "film.h"
#include <dcp/raw_convert.h>
-#include <boost/foreach.hpp>
using std::string;
using std::vector;
-using boost::shared_ptr;
+using std::shared_ptr;
using dcp::raw_convert;
DKDMRecipient::DKDMRecipient (cxml::ConstNodePtr node)
: KDMRecipient (node)
{
- BOOST_FOREACH (cxml::ConstNodePtr i, node->node_children("Email")) {
+ for (auto i: node->node_children("Email")) {
emails.push_back (i->content());
}
{
KDMRecipient::as_xml (node);
- BOOST_FOREACH (string i, emails) {
+ for (auto i: emails) {
node->add_child("Email")->add_child_text(i);
}
cpl,
begin,
end,
- dcp::MODIFIED_TRANSITIONAL_1,
+ dcp::Formulation::MODIFIED_TRANSITIONAL_1,
true,
0
);
name_values['e'] = end.date() + " " + end.time_of_day(true, false);
name_values['i'] = kdm.cpl_id();
- return KDMWithMetadataPtr(new DCPKDMWithMetadata(name_values, 0, recipient->emails, kdm));
+ return KDMWithMetadataPtr(new KDMWithMetadata(name_values, 0, recipient->emails, kdm));
}