summaryrefslogtreecommitdiff
path: root/src/cpl.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-04-17 22:19:02 +0200
committerCarl Hetherington <cth@carlh.net>2024-04-17 22:19:02 +0200
commit869462070671b273ac528e075ac1c00a417cc8a0 (patch)
treec6a98899ff9a7f86ab061730a5fdc9b52d787a2c /src/cpl.h
parent0a8f2a1a2058f0461a7f978295e31af34a03bb40 (diff)
Make some not-so-important CPL read errors non-fatal (DoM #2797).v1.8.99
Diffstat (limited to 'src/cpl.h')
-rw-r--r--src/cpl.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cpl.h b/src/cpl.h
index fb4f3376..824faaa1 100644
--- a/src/cpl.h
+++ b/src/cpl.h
@@ -47,6 +47,7 @@
#include "key.h"
#include "language_tag.h"
#include "rating.h"
+#include "verify.h"
#include <boost/filesystem.hpp>
#include <boost/function.hpp>
#include <boost/optional.hpp>
@@ -82,8 +83,11 @@ class CPL : public Asset
public:
CPL (std::string annotation_text, ContentKind content_kind, Standard standard);
- /** Construct a CPL object from a XML file */
- explicit CPL (boost::filesystem::path file);
+ /** Construct a CPL object from a XML file.
+ * If notes is not null, non-fatal errors will be added.
+ * Exceptions will be thrown on non-recoverable errors.
+ */
+ explicit CPL(boost::filesystem::path file, std::vector<dcp::VerificationNote>* notes = nullptr);
bool equals (
std::shared_ptr<const Asset> other,