From 5ee3348142f4cfafdbcf2c9c833843d717affc11 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 5 Jan 2016 01:24:19 +0000 Subject: Various IMF hacks. --- src/package.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/package.h') diff --git a/src/package.h b/src/package.h index 324998e5..610b7637 100644 --- a/src/package.h +++ b/src/package.h @@ -27,8 +27,10 @@ #include "types.h" #include "certificate.h" #include "metadata.h" +#include "dcp_assert.h" #include #include +#include #include #include @@ -111,6 +113,19 @@ protected: */ void write_assetmap (Standard standard, std::string pkl_uuid, int pkl_length, XMLMetadata metadata) const; + template + std::list > + cpls_of_type () const + { + std::list > cpls; + BOOST_FOREACH (boost::shared_ptr i, _cpls) { + boost::shared_ptr t = boost::dynamic_pointer_cast (i); + DCP_ASSERT (t); + cpls.push_back (t); + } + return cpls; + } + /** the directory that we are writing to */ boost::filesystem::path _directory; /** the CPLs that make up this package */ -- cgit v1.2.3