diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-05-08 22:44:50 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-05-08 22:44:50 +0200 |
| commit | 1a1ad378a86e4546c746ac5b89377f50d8580c15 (patch) | |
| tree | e3f3972f10729deec69ee3634dba6cbad06289ed /src/subtitle_asset.h | |
| parent | 7fe06c648aa6e0262dd2d053c93e604de8963342 (diff) | |
Store and allow access to the raw XML that is read in from
subtitle assets so that it cab be verified without any
interference from being passed through libdcp.
Diffstat (limited to 'src/subtitle_asset.h')
| -rw-r--r-- | src/subtitle_asset.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h index 9792ce05..fd233cc8 100644 --- a/src/subtitle_asset.h +++ b/src/subtitle_asset.h @@ -105,6 +105,10 @@ public: virtual std::list<boost::shared_ptr<LoadFontNode> > load_font_nodes () const = 0; + std::string raw_xml () const { + return _raw_xml; + } + protected: friend struct ::interop_dcp_font_test; friend struct ::smpte_dcp_font_test; @@ -174,6 +178,9 @@ protected: /** TTF font data that we need */ std::list<Font> _fonts; + /** The raw XML data that we read from our asset; useful for validation */ + std::string _raw_xml; + private: friend struct ::pull_fonts_test1; friend struct ::pull_fonts_test2; |
