From 736b3a068ba5a402b541d32f270669e6e1a4e5c4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 29 Jul 2016 09:57:58 +0100 Subject: Allow configuration of KDM filename format. --- src/lib/kdm_name_format.cc | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/lib/kdm_name_format.cc (limited to 'src/lib/kdm_name_format.cc') diff --git a/src/lib/kdm_name_format.cc b/src/lib/kdm_name_format.cc new file mode 100644 index 000000000..fe4a3fc62 --- /dev/null +++ b/src/lib/kdm_name_format.cc @@ -0,0 +1,33 @@ +/* + Copyright (C) 2016 Carl Hetherington + + 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 . + +*/ + +#include "kdm_name_format.h" + +using std::string; + +KDMNameFormat::KDMNameFormat (string specification) + : NameFormat (specification) +{ + add ("film_name", 'f', "film name"); + add ("cinema", 'c', "cinema"); + add ("screen", 's', "screen"); + add ("from", 'b', "from date/time"); + add ("to", 'e', "to date/time"); +} -- cgit v1.2.3