X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fstring_text_file_content.h;h=30f543381bf68fd0390b025fbac30a888210b881;hb=14e02ad2f79bdc6fbc320ec7b9282b5faabdb825;hp=9a71d5828696683aa6b97b5b460c0eeda1ed377e;hpb=254b3044d72de6b033d7c584f5abd2b9aa70aad5;p=dcpomatic.git diff --git a/src/lib/string_text_file_content.h b/src/lib/string_text_file_content.h index 9a71d5828..30f543381 100644 --- a/src/lib/string_text_file_content.h +++ b/src/lib/string_text_file_content.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2018 Carl Hetherington + Copyright (C) 2014-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,10 +18,13 @@ */ + #include "content.h" + class Job; + /** @class StringTextFileContent * @brief A SubRip, SSA or ASS file. */ @@ -29,18 +32,26 @@ class StringTextFileContent : public Content { public: StringTextFileContent (boost::filesystem::path); - StringTextFileContent (cxml::ConstNodePtr, int); + StringTextFileContent (cxml::ConstNodePtr, int, std::list&); - boost::shared_ptr shared_from_this () { - return boost::dynamic_pointer_cast (Content::shared_from_this ()); + std::shared_ptr shared_from_this () { + return std::dynamic_pointer_cast (Content::shared_from_this ()); } - void examine (boost::shared_ptr film, boost::shared_ptr); - std::string summary () const; - std::string technical_summary () const; - void as_xml (xmlpp::Node *, bool with_paths) const; - DCPTime full_length (boost::shared_ptr film) const; + std::shared_ptr shared_from_this () const { + return std::dynamic_pointer_cast (Content::shared_from_this ()); + } + + void examine (std::shared_ptr film, std::shared_ptr) override; + std::string summary () const override; + std::string technical_summary () const override; + void as_xml (xmlpp::Node *, bool with_paths) const override; + dcpomatic::DCPTime full_length (std::shared_ptr film) const override; + dcpomatic::DCPTime approximate_length () const override; + std::string identifier () const override; + + void check_font_ids(); private: - ContentTime _length; + dcpomatic::ContentTime _length; };