44 #include "asset_map.h"
46 #include "compose.hpp"
70 class CertificateChain;
73 class EqualityOptions;
92 explicit DCP (boost::filesystem::path directory);
95 DCP& operator= (
DCP const&) =
delete;
118 void read (std::vector<VerificationNote>* notes =
nullptr,
bool ignore_incorrect_picture_mxf_type =
false);
128 void add (std::shared_ptr<CPL> cpl);
130 std::vector<std::shared_ptr<CPL>> cpls ()
const;
136 std::vector<std::shared_ptr<Asset>>
assets (
bool ignore_unresolved =
false)
const;
138 bool any_encrypted ()
const;
139 bool all_encrypted ()
const;
147 void set_issuer(std::string issuer);
148 void set_creator(std::string creator);
149 void set_issue_date(std::string issue_date);
150 void set_annotation_text(std::string annotation_text);
158 std::shared_ptr<const CertificateChain> signer = std::shared_ptr<const CertificateChain>(),
159 bool include_mca_subdescriptors =
true,
163 void resolve_refs (std::vector<std::shared_ptr<Asset>>
assets);
171 return _asset_map->standard();
174 boost::filesystem::path directory ()
const {
181 std::vector<std::shared_ptr<PKL>>
pkls ()
const {
185 boost::optional<boost::filesystem::path> asset_map_file()
const {
190 return _asset_map->file();
193 boost::optional<AssetMap> asset_map()
const {
197 static std::vector<boost::filesystem::path>
directories_from_files (std::vector<boost::filesystem::path> files);
206 std::vector<std::shared_ptr<CPL>>
_cpls;
208 std::vector<std::shared_ptr<PKL>>
_pkls;
209 boost::optional<AssetMap> _asset_map;
212 boost::optional<std::string> _new_issuer;
213 boost::optional<std::string> _new_creator;
214 boost::optional<std::string> _new_issue_date;
215 boost::optional<std::string> _new_annotation_text;
A class to create or read a DCP.
DCP(boost::filesystem::path directory)
static std::vector< boost::filesystem::path > directories_from_files(std::vector< boost::filesystem::path > files)
bool equals(DCP const &other, EqualityOptions const &options, NoteHandler note) const
std::vector< std::shared_ptr< Asset > > assets(bool ignore_unresolved=false) const
std::vector< std::shared_ptr< PKL > > _pkls
boost::filesystem::path _directory
std::vector< std::shared_ptr< CPL > > _cpls
void write_xml(std::shared_ptr< const CertificateChain > signer=std::shared_ptr< const CertificateChain >(), bool include_mca_subdescriptors=true, NameFormat name_format=NameFormat("%t"))
boost::optional< Standard > standard() const
void read(std::vector< VerificationNote > *notes=nullptr, bool ignore_incorrect_picture_mxf_type=false)
std::vector< std::shared_ptr< PKL > > pkls() const
void write_volindex(Standard standard) const
A class to describe what "equality" means for a particular test.
Namespace for everything in libdcp.
Utility methods and classes.
dcp::verify() method and associated code
Versioning variables that are written by the build system.