diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-04-20 23:41:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-17 00:46:19 +0100 |
| commit | 2f6087e528c1a48fed0ac7166b1ff8704684c87a (patch) | |
| tree | dcffc9da0bc8ec3341a7e8679284531836f7192f /src/dcp.h | |
| parent | b1a47060818175bf222da2ab11f7caec73f5a70c (diff) | |
Read PKL when reading DCP.
Diffstat (limited to 'src/dcp.h')
| -rw-r--r-- | src/dcp.h | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -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> pkl () const { + return _pkl; + } + static std::vector<boost::filesystem::path> directories_from_files (std::vector<boost::filesystem::path> 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<const CertificateChain> 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<boost::shared_ptr<CPL> > _cpls; + boost::shared_ptr<PKL> _pkl; /** Standard of DCP that was read in */ boost::optional<Standard> _standard; |
