diff options
Diffstat (limited to 'src/smpte_subtitle_asset.h')
| -rw-r--r-- | src/smpte_subtitle_asset.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/src/smpte_subtitle_asset.h b/src/smpte_subtitle_asset.h index 639c8eb7..5f4d8833 100644 --- a/src/smpte_subtitle_asset.h +++ b/src/smpte_subtitle_asset.h @@ -18,13 +18,15 @@ */ #include "subtitle_asset.h" +#include "local_time.h" +#include "mxf.h" #include <boost/filesystem.hpp> namespace dcp { class SMPTELoadFontNode; -class SMPTESubtitleAsset : public SubtitleAsset +class SMPTESubtitleAsset : public SubtitleAsset, public MXF { public: /** @param file File name @@ -32,11 +34,40 @@ public: */ SMPTESubtitleAsset (boost::filesystem::path file, bool mxf = true); + bool equals ( + boost::shared_ptr<const Asset>, + EqualityOptions, + NoteHandler note + ) const; + std::list<boost::shared_ptr<LoadFontNode> > load_font_nodes () const; + Glib::ustring xml_as_string () const; + void write (boost::filesystem::path path) const; + + /** @return language, if one was specified */ + boost::optional<std::string> language () const { + return _language; + } + static bool valid_mxf (boost::filesystem::path); + +protected: + + std::string pkl_type (Standard) const { + return "application/mxf"; + } private: + std::string _content_title_text; + boost::optional<std::string> _annotation_text; + LocalTime _issue_date; + boost::optional<int> _reel_number; + boost::optional<std::string> _language; + Fraction _edit_rate; + int _time_code_rate; + boost::optional<Time> _start_time; + std::list<boost::shared_ptr<SMPTELoadFontNode> > _load_font_nodes; }; |
