diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-17 22:19:02 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-17 22:19:02 +0200 |
| commit | 869462070671b273ac528e075ac1c00a417cc8a0 (patch) | |
| tree | c6a98899ff9a7f86ab061730a5fdc9b52d787a2c /src/cpl.h | |
| parent | 0a8f2a1a2058f0461a7f978295e31af34a03bb40 (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.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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, |
