summaryrefslogtreecommitdiff
path: root/src/lib/recipient_with_dkdm.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-05-04 01:03:26 +0200
committerCarl Hetherington <cth@carlh.net>2020-05-04 01:03:26 +0200
commit7703a0d95f4188d4e7e9414afc6bfe3259cf1cdc (patch)
tree1325e5faa92fe80cfa898687320a97471f481a85 /src/lib/recipient_with_dkdm.cc
parent107549f047c45a692f229a5023b4f26cd1301921 (diff)
All going downhill.dkdm
Diffstat (limited to 'src/lib/recipient_with_dkdm.cc')
-rw-r--r--src/lib/recipient_with_dkdm.cc28
1 files changed, 3 insertions, 25 deletions
diff --git a/src/lib/recipient_with_dkdm.cc b/src/lib/recipient_with_dkdm.cc
index ebe966fe4..34e66269a 100644
--- a/src/lib/recipient_with_dkdm.cc
+++ b/src/lib/recipient_with_dkdm.cc
@@ -120,30 +120,8 @@ RecipientWithDKDM::email (
}
-int
-RecipientWithDKDM::write_files (
- vector<RecipientWithDKDM> kdms,
- boost::filesystem::path directory,
- dcp::NameFormat name_format,
- dcp::NameFormat::Map name_values,
- boost::function<bool (boost::filesystem::path)> confirm_overwrite
- )
+void
+RecipientWithDKDM::add_name_values (dcp::NameFormat::Map& values)
{
- int written = 0;
-
- if (!boost::filesystem::exists (directory)) {
- boost::filesystem::create_directories (directory);
- }
-
- /* Write KDMs to the specified directory */
- BOOST_FOREACH (RecipientWithDKDM const& i, kdms) {
- name_values['i'] = i.kdm.cpl_id ();
- boost::filesystem::path out = directory / careful_string_filter(name_format.get(name_values, ".xml"));
- if (!boost::filesystem::exists (out) || confirm_overwrite (out)) {
- i.kdm.as_xml (out);
- ++written;
- }
- }
-
- return written;
+ values['i'] = kdm.cpl_id ();
}