* @param note Functor to handle notes made by the equality operation.
* @return true if the DCPs are equal according to EqualityOptions, otherwise false.
*/
- bool equals (DCP const & other, EqualityOptions options, NoteHandler note) const;
+ bool equals(DCP const & other, EqualityOptions const& options, NoteHandler note) const;
void add (std::shared_ptr<CPL> cpl);
void set_annotation_text(std::string annotation_text);
/** Write all the XML files for this DCP.
- * @param standand INTEROP or SMPTE
* @param signer Signer to use
+ * @param include_mca_subdescriptors true to write MCA subdescriptors to CPLs.
* @param name_format Name format to use for the CPL and PKL filenames
*/
- void write_xml (
+ void write_xml(
std::shared_ptr<const CertificateChain> signer = std::shared_ptr<const CertificateChain>(),
+ bool include_mca_subdescriptors = true,
NameFormat name_format = NameFormat("%t")
);
return _pkls;
}
- boost::optional<boost::filesystem::path> asset_map_path() const {
+ boost::optional<boost::filesystem::path> asset_map_file() const {
if (!_asset_map) {
return {};
}
- return _asset_map->path();
+ return _asset_map->file();
+ }
+
+ boost::optional<AssetMap> asset_map() const {
+ return _asset_map;
}
static std::vector<boost::filesystem::path> directories_from_files (std::vector<boost::filesystem::path> files);