summaryrefslogtreecommitdiff
path: root/src/package_base.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-01-10 21:05:54 +0000
committerCarl Hetherington <cth@carlh.net>2016-01-10 21:05:54 +0000
commit1ee5cc88cb32927f95358e2d03985caf5a1d8e05 (patch)
treedd7a17fbcae7179d79249d5bde08319d6159cf7f /src/package_base.h
parent0ffc4c35a9ae232f3bed9329997c043c42372f6f (diff)
Move some more stuff up to Package.
Diffstat (limited to 'src/package_base.h')
-rw-r--r--src/package_base.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/package_base.h b/src/package_base.h
index 090d9955..cc810223 100644
--- a/src/package_base.h
+++ b/src/package_base.h
@@ -28,6 +28,7 @@
namespace dcp {
class Asset;
+class CertificateChain;
class PackageBase
{
@@ -42,6 +43,7 @@ protected:
virtual boost::shared_ptr<Asset> xml_asset_factory (boost::filesystem::path file, std::string root) const = 0;
virtual boost::shared_ptr<Asset> mxf_asset_factory (boost::filesystem::path file) const = 0;
+ virtual std::string pkl_annotation_text () const = 0;
std::list<boost::shared_ptr<Asset> > read_assetmap (bool keep_going, ReadErrors* errors) const;
@@ -53,6 +55,13 @@ protected:
*/
void write_assetmap (Standard standard, std::string pkl_uuid, int pkl_length, XMLMetadata metadata) const;
+ boost::filesystem::path write_pkl (
+ Standard standard,
+ std::string pkl_uuid,
+ dcp::XMLMetadata metadata,
+ boost::shared_ptr<const dcp::CertificateChain> signer
+ ) const;
+
/** the directory that the package is in */
boost::filesystem::path _directory;
};