From 2f6087e528c1a48fed0ac7166b1ff8704684c87a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 20 Apr 2018 23:41:21 +0100 Subject: Read PKL when reading DCP. --- src/dcp.h | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'src/dcp.h') diff --git a/src/dcp.h b/src/dcp.h index 752bd814..9c97e6aa 100644 --- a/src/dcp.h +++ b/src/dcp.h @@ -57,6 +57,7 @@ namespace xmlpp { namespace dcp { +class PKL; class Content; class Reel; class CPL; @@ -128,21 +129,17 @@ public: return _directory; } + /** @return PKL if this DCP was read from an existing one, or if write_xml() has been called on it. + * If neither is true, this method returns 0. + */ + boost::shared_ptr pkl () const { + return _pkl; + } + static std::vector directories_from_files (std::vector files); private: - /** Write the PKL file. - * @param pkl_uuid UUID to use. - */ - boost::filesystem::path write_pkl ( - std::string file, - Standard standard, - std::string pkl_uuid, - XMLMetadata metadata, - boost::shared_ptr signer - ) const; - void write_volindex (Standard standard) const; /** Write the ASSETMAP file. @@ -155,6 +152,7 @@ private: boost::filesystem::path _directory; /** the CPLs that make up this DCP */ std::list > _cpls; + boost::shared_ptr _pkl; /** Standard of DCP that was read in */ boost::optional _standard; -- cgit v1.2.3