summaryrefslogtreecommitdiff
path: root/src/subtitle_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-04 01:14:12 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-04 01:14:12 +0100
commit41c4d628f7ef3c9f9b434d34ff099f5fe4de1ae4 (patch)
treef912e10cfd99245933ffd3eaa0d39a01aec1daad /src/subtitle_content.h
parent09e16aa3acf7878b54a4995a0be79890f26db09f (diff)
Port support for MXF-wrapped subtitles from 0.x
Diffstat (limited to 'src/subtitle_content.h')
-rw-r--r--src/subtitle_content.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/subtitle_content.h b/src/subtitle_content.h
index 410c5934..2c606921 100644
--- a/src/subtitle_content.h
+++ b/src/subtitle_content.h
@@ -34,12 +34,19 @@ class Subtitle;
class LoadFont;
/** @class SubtitleContent
- * @brief A representation of an XML file containing subtitles.
+ * @brief A representation of an XML or MXF file containing subtitles.
+ *
+ * XXX: perhaps this should inhert from MXF, or there should be different
+ * classes for XML and MXF subs.
*/
class SubtitleContent : public Content
{
public:
- SubtitleContent (boost::filesystem::path file);
+ /** Construct a SubtitleContent.
+ * @param file Filename.
+ * @param mxf true if the file is an MXF file, false for XML.
+ */
+ SubtitleContent (boost::filesystem::path file, bool mxf);
SubtitleContent (Fraction edit_rate, std::string movie_title, std::string language);
bool equals (
@@ -98,7 +105,7 @@ private:
ParseState& parse_state
);
- std::string _movie_title;
+ boost::optional<std::string> _movie_title;
/* strangely, this is sometimes a string */
std::string _reel_number;
std::string _language;