40 #include "language_tag.h"
45 LIBDCP_DISABLE_WARNINGS
46 #include <libxml++/libxml++.h>
47 LIBDCP_ENABLE_WARNINGS
51 using std::shared_ptr;
52 using std::dynamic_pointer_cast;
53 using boost::optional;
57 ReelSubtitleAsset::ReelSubtitleAsset (std::shared_ptr<SubtitleAsset> asset,
Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point)
71 ReelSubtitleAsset::ReelSubtitleAsset (std::shared_ptr<const cxml::Node> node)
74 _language = node->optional_string_child(
"Language");
79 ReelSubtitleAsset::cpl_node_name (Standard)
const
81 return "MainSubtitle";
93 ReelSubtitleAsset::equals (shared_ptr<const ReelSubtitleAsset> other,
EqualityOptions opt, NoteHandler note)
const
95 if (!asset_equals (other, opt, note)) {
98 if (!file_asset_equals (other, opt, note)) {
107 ReelSubtitleAsset::write_to_cpl (xmlpp::Node* node, Standard standard)
const
109 auto asset = ReelFileAsset::write_to_cpl (node, standard);
111 asset->add_child(
"Language")->add_child_text(*
_language);
A fraction (i.e. a thing with an integer numerator and an integer denominator).
boost::optional< std::string > _language
A set of subtitles to be read and/or written in the SMPTE format.
Namespace for everything in libdcp.
SMPTESubtitleAsset class.
A class to describe what "equality" means for a particular test.