#include "emailer.h"
#include "compose.hpp"
#include "log.h"
-#include "kdm_name_format.h"
+#include "kdm_filename_format.h"
#include <zip.h>
#include <boost/foreach.hpp>
using boost::shared_ptr;
void
-CinemaKDMs::make_zip_file (boost::filesystem::path zip_file, KDMNameFormat name_format, dcp::NameFormat::Map name_values) const
+CinemaKDMs::make_zip_file (boost::filesystem::path zip_file, KDMFilenameFormat name_format, dcp::NameFormat::Map name_values) const
{
int error;
struct zip* zip = zip_open (zip_file.string().c_str(), ZIP_CREATE | ZIP_EXCL, &error);
CinemaKDMs::write_zip_files (
list<CinemaKDMs> cinema_kdms,
boost::filesystem::path directory,
- KDMNameFormat name_format,
+ KDMFilenameFormat name_format,
dcp::NameFormat::Map name_values
)
{
void
CinemaKDMs::email (
list<CinemaKDMs> cinema_kdms,
- KDMNameFormat name_format,
+ KDMFilenameFormat name_format,
dcp::NameFormat::Map name_values,
string cpl_name,
shared_ptr<Log> log
class CinemaKDMs
{
public:
- void make_zip_file (boost::filesystem::path zip_file, KDMNameFormat name_format, dcp::NameFormat::Map name_values) const;
+ void make_zip_file (boost::filesystem::path zip_file, KDMFilenameFormat name_format, dcp::NameFormat::Map name_values) const;
static std::list<CinemaKDMs> collect (std::list<ScreenKDM> kdms);
static void write_zip_files (
std::list<CinemaKDMs> cinema_kdms,
boost::filesystem::path directory,
- KDMNameFormat name_format,
+ KDMFilenameFormat name_format,
dcp::NameFormat::Map name_values
);
static void email (
std::list<CinemaKDMs> cinema_kdms,
- KDMNameFormat name_format,
+ KDMFilenameFormat name_format,
dcp::NameFormat::Map name_values,
std::string cpl_name,
boost::shared_ptr<Log> log
#include "util.h"
#include "cross.h"
#include "raw_convert.h"
-#include "kdm_name_format.h"
+#include "kdm_filename_format.h"
#include <dcp/filename_format.h>
#include <dcp/colour_matrix.h>
#include <dcp/certificate_chain.h>
#endif
_cinemas_file = path ("cinemas.xml");
_show_hints_before_make_dcp = true;
- _kdm_filename_format = KDMNameFormat ("KDM %f %c %s");
+ _kdm_filename_format = KDMFilenameFormat ("KDM %f %c %s");
_dcp_filename_format = dcp::FilenameFormat ("%t_%i");
_allowed_dcp_frame_rates.clear ();
_cinemas_file = f.optional_string_child("CinemasFile").get_value_or (path ("cinemas.xml").string ());
_show_hints_before_make_dcp = f.optional_bool_child("ShowHintsBeforeMakeDCP").get_value_or (true);
- _kdm_filename_format = KDMNameFormat (f.optional_string_child("KDMFilenameFormat").get_value_or ("KDM %f %c %s"));
+ _kdm_filename_format = KDMFilenameFormat (f.optional_string_child("KDMFilenameFormat").get_value_or ("KDM %f %c %s"));
_dcp_filename_format = dcp::FilenameFormat (f.optional_string_child("DCPFilenameFormat").get_value_or ("%t_%i.mxf"));
/* Replace any cinemas from config.xml with those from the configured file */
#define DCPOMATIC_CONFIG_H
#include "isdcf_metadata.h"
-#include "kdm_name_format.h"
+#include "kdm_filename_format.h"
#include "types.h"
#include <dcp/filename_format.h>
#include <dcp/certificate_chain.h>
return _show_hints_before_make_dcp;
}
- KDMNameFormat kdm_filename_format () const {
+ KDMFilenameFormat kdm_filename_format () const {
return _kdm_filename_format;
}
maybe_set (_show_hints_before_make_dcp, s);
}
- void set_kdm_filename_format (KDMNameFormat n) {
+ void set_kdm_filename_format (KDMFilenameFormat n) {
maybe_set (_kdm_filename_format, n);
}
std::vector<dcp::EncryptedKDM> _dkdms;
boost::filesystem::path _cinemas_file;
bool _show_hints_before_make_dcp;
- KDMNameFormat _kdm_filename_format;
+ KDMFilenameFormat _kdm_filename_format;
dcp::FilenameFormat _dcp_filename_format;
/** Singleton instance, or 0 */
--- /dev/null
+/*
+ Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+
+ This file is part of DCP-o-matic.
+
+ DCP-o-matic is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ DCP-o-matic is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+#include "kdm_filename_format.h"
+
+using std::string;
+
+KDMFilenameFormat::KDMFilenameFormat (string specification)
+ : NameFormat (specification)
+{
+ /* film name */
+ add ('f');
+ /* cinema */
+ add ('c');
+ /* screen */
+ add ('s');
+ /* from date/time */
+ add ('b');
+ /* to date/time */
+ add ('e');
+}
--- /dev/null
+/*
+ Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+
+ This file is part of DCP-o-matic.
+
+ DCP-o-matic is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ DCP-o-matic is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+#ifndef DCPOMATIC_KDM_FILENAME_FORMAT
+#define DCPOMATIC_KDM_FILENAME_FORMAT
+
+#include <dcp/name_format.h>
+
+class KDMFilenameFormat : public dcp::NameFormat
+{
+public:
+ KDMFilenameFormat () {}
+ KDMFilenameFormat (std::string specification);
+};
+
+#endif
+++ /dev/null
-/*
- Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
-
- This file is part of DCP-o-matic.
-
- DCP-o-matic is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- DCP-o-matic is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
-
-*/
-
-#include "kdm_name_format.h"
-
-using std::string;
-
-KDMNameFormat::KDMNameFormat (string specification)
- : NameFormat (specification)
-{
- /* film name */
- add ('f');
- /* cinema */
- add ('c');
- /* screen */
- add ('s');
- /* from date/time */
- add ('b');
- /* to date/time */
- add ('e');
-}
+++ /dev/null
-/*
- Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
-
- This file is part of DCP-o-matic.
-
- DCP-o-matic is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- DCP-o-matic is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
-
-*/
-
-#ifndef DCPOMATIC_KDM_NAME_FORMAT
-#define DCPOMATIC_KDM_NAME_FORMAT
-
-#include <dcp/name_format.h>
-
-class KDMNameFormat : public dcp::NameFormat
-{
-public:
- KDMNameFormat () {}
- KDMNameFormat (std::string specification);
-};
-
-#endif
/*
- Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
}
void
-ScreenKDM::write_files (list<ScreenKDM> screen_kdms, boost::filesystem::path directory, KDMNameFormat name_format, dcp::NameFormat::Map name_values)
+ScreenKDM::write_files (list<ScreenKDM> screen_kdms, boost::filesystem::path directory, KDMFilenameFormat name_format, dcp::NameFormat::Map name_values)
{
/* Write KDMs to the specified directory */
BOOST_FOREACH (ScreenKDM const & i, screen_kdms) {
/*
- Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#ifndef DCPOMATIC_SCREEN_KDM_H
#define DCPOMATIC_SCREEN_KDM_H
-#include "kdm_name_format.h"
+#include "kdm_filename_format.h"
#include <dcp/encrypted_kdm.h>
#include <boost/shared_ptr.hpp>
static void write_files (
std::list<ScreenKDM> screen_kdms, boost::filesystem::path directory,
- KDMNameFormat name_format, dcp::NameFormat::Map name_values
+ KDMFilenameFormat name_format, dcp::NameFormat::Map name_values
);
boost::shared_ptr<Screen> screen;
/** @param log Log to write to, or 0 */
SendKDMEmailJob::SendKDMEmailJob (
list<CinemaKDMs> cinema_kdms,
- KDMNameFormat name_format,
+ KDMFilenameFormat name_format,
dcp::NameFormat::Map name_values,
string cpl_name,
shared_ptr<Log> log
*/
#include "job.h"
-#include "kdm_name_format.h"
+#include "kdm_filename_format.h"
#include <dcp/types.h>
#include <boost/filesystem.hpp>
public:
SendKDMEmailJob (
std::list<CinemaKDMs> cinema_kdms,
- KDMNameFormat name_format,
+ KDMFilenameFormat name_format,
dcp::NameFormat::Map name_values,
std::string cpl_name,
boost::shared_ptr<Log> log
void run ();
private:
- KDMNameFormat _name_format;
+ KDMFilenameFormat _name_format;
dcp::NameFormat::Map _name_values;
std::string _cpl_name;
std::list<CinemaKDMs> _cinema_kdms;
job.cc
job_manager.cc
json_server.cc
- kdm_name_format.cc
+ kdm_filename_format.cc
log.cc
log_entry.cc
magick_image_proxy.cc
*/
#include "wx_util.h"
-#include "lib/kdm_name_format.h"
+#include "lib/kdm_filename_format.h"
#include <dcp/types.h>
#include <wx/wx.h>
#include <boost/shared_ptr.hpp>
ex['s'] = "Screen 1";
ex['b'] = "2012/03/15 12:30";
ex['e'] = "2012/03/22 02:30";
- _filename_format = new NameFormatEditor<KDMNameFormat> (this, Config::instance()->kdm_filename_format(), titles, ex);
+ _filename_format = new NameFormatEditor<KDMFilenameFormat> (this, Config::instance()->kdm_filename_format(), titles, ex);
table->Add (_filename_format->panel(), 1, wxEXPAND);
_write_to = new wxRadioButton (this, wxID_ANY, _("Write to"));
Config::instance()->set_kdm_filename_format (name_format ());
}
-KDMNameFormat
+KDMFilenameFormat
KDMOutputPanel::name_format () const
{
return _filename_format->get ();
#include "wx_util.h"
#include "name_format_editor.h"
-#include "lib/kdm_name_format.h"
+#include "lib/kdm_filename_format.h"
#include <dcp/types.h>
#include <wx/wx.h>
#include <boost/filesystem.hpp>
boost::filesystem::path directory () const;
bool write_to () const;
dcp::Formulation formulation () const;
- KDMNameFormat name_format () const;
+ KDMFilenameFormat name_format () const;
void setup_sensitivity ();
void save_kdm_name_format () const;
private:
wxChoice* _type;
- NameFormatEditor<KDMNameFormat>* _filename_format;
+ NameFormatEditor<KDMFilenameFormat>* _filename_format;
wxRadioButton* _write_to;
#ifdef DCPOMATIC_USE_OWN_PICKER
DirPickerCtrl* _folder;