40 #ifndef DCP_INTEROP_SUBTITLE_ASSET_H
41 #define DCP_INTEROP_SUBTITLE_ASSET_H
45 #include <boost/filesystem.hpp>
51 class InteropLoadFontNode;
66 std::shared_ptr<const Asset>,
71 void write_to_assetmap (xmlpp::Node* node, boost::filesystem::path root)
const override;
72 void add_to_pkl (std::shared_ptr<PKL> pkl, boost::filesystem::path root)
const override;
74 std::vector<std::shared_ptr<LoadFontNode>> load_font_nodes ()
const override;
78 std::string xml_as_string ()
const override;
81 void write (boost::filesystem::path path)
const override;
83 void resolve_fonts (std::vector<std::shared_ptr<Asset>> assets);
84 void add_font_assets (std::vector<std::shared_ptr<Asset>>& assets);
85 void set_font_file (std::string load_id, boost::filesystem::path
file);
124 int time_code_rate ()
const override {
129 static std::string static_pkl_type (Standard) {
130 return "text/xml;asdcpKind=Subtitle";
136 return static_pkl_type (s);
140 std::string _reel_number;
141 std::string _language;
142 std::string _movie_title;
143 std::vector<std::shared_ptr<InteropLoadFontNode>> _load_font_nodes;
Class to hold an arbitrary block of data.
boost::optional< boost::filesystem::path > file() const
A set of subtitles to be read and/or written in the Inter-Op format.
std::string language() const
std::string movie_title() const
void write(boost::filesystem::path path) const override
std::string reel_number() const
void set_reel_number(std::string n)
void resolve_fonts(std::vector< std::shared_ptr< Asset >> assets)
std::string pkl_type(Standard s) const override
void set_movie_title(std::string m)
void set_language(std::string l)
A parent for classes representing a file containing subtitles.
Namespace for everything in libdcp.
A class to describe what "equality" means for a particular test.