40 #ifndef LIBDCP_INTEROP_TEXT_ASSET_H
41 #define LIBDCP_INTEROP_TEXT_ASSET_H
45 #include "subtitle_standard.h"
46 #include <boost/filesystem.hpp>
52 class InteropLoadFontNode;
67 std::shared_ptr<const Asset>,
72 void add_to_assetmap (
AssetMap& asset_map, boost::filesystem::path root)
const override;
73 void add_to_pkl (std::shared_ptr<PKL> pkl, boost::filesystem::path root)
const override;
75 std::vector<std::shared_ptr<LoadFontNode>> load_font_nodes ()
const override;
79 std::string xml_as_string ()
const override;
82 void write (boost::filesystem::path path)
const override;
84 void resolve_fonts (std::vector<std::shared_ptr<Asset>> assets);
85 void set_font_file (std::string load_id, boost::filesystem::path
file);
86 std::vector<std::shared_ptr<Asset>> font_assets();
87 std::vector<std::shared_ptr<const Asset>> font_assets()
const;
132 int time_code_rate ()
const override {
137 SubtitleStandard subtitle_standard()
const override {
138 return SubtitleStandard::INTEROP;
141 static std::string static_pkl_type (Standard) {
142 return "text/xml;asdcpKind=Subtitle";
148 return static_pkl_type (s);
152 std::string _reel_number;
153 std::string _language;
154 std::string _movie_title;
155 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 class to describe what "equality" means for a particular test.
A set of subtitles to be read and/or written in the Inter-Op format.
std::string reel_number() const
std::string language() const
std::string pkl_type(Standard s) const override
std::string movie_title() const
void set_movie_title(std::string m)
void set_language(std::string l)
void write(boost::filesystem::path path) const override
void resolve_fonts(std::vector< std::shared_ptr< Asset >> assets)
std::vector< std::string > unresolved_fonts() const
void set_reel_number(std::string n)
A parent for classes representing a file containing subtitles or captions.
Namespace for everything in libdcp.