summaryrefslogtreecommitdiff
path: root/src/dcp.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-29 15:53:26 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-29 15:53:26 +0100
commit8ef91325f4e565d04493bc05202f8e066b5e3e0c (patch)
tree162fbc2bef7243ff1f650cd7e91c851e783ba8c6 /src/dcp.h
parente02bf26f284c6efc72593e6b4a251301144e5d0b (diff)
Basics of allowing custom filenames for DCP components.
Diffstat (limited to 'src/dcp.h')
-rw-r--r--src/dcp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dcp.h b/src/dcp.h
index 7c318622..cc87d0d1 100644
--- a/src/dcp.h
+++ b/src/dcp.h
@@ -41,6 +41,7 @@
#include "types.h"
#include "certificate.h"
#include "metadata.h"
+#include "filename_format.h"
#include <boost/shared_ptr.hpp>
#include <boost/signals2.hpp>
#include <string>
@@ -111,7 +112,8 @@ public:
void write_xml (
Standard standard,
XMLMetadata metadata = XMLMetadata (),
- boost::shared_ptr<const CertificateChain> signer = boost::shared_ptr<const CertificateChain> ()
+ boost::shared_ptr<const CertificateChain> signer = boost::shared_ptr<const CertificateChain> (),
+ FilenameFormat filename_format = FilenameFormat("%t_%i")
);
void resolve_refs (std::list<boost::shared_ptr<Asset> > assets);
@@ -127,6 +129,7 @@ private:
* @param pkl_uuid UUID to use.
*/
boost::filesystem::path write_pkl (
+ std::string file,
Standard standard,
std::string pkl_uuid,
XMLMetadata metadata,