X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fstring_text_file_content.h;h=aec86181ccc8ab58adb902c8a6c4e6bc25345a16;hb=689bf63d32a8276477ab12e83bd47a5ff67d3eae;hp=c2de86ce560d5809b97e1edd9c7d3a7a1c5db02d;hpb=df17bbd25da69fc38eb2dcd8b4a2531cf0bab0bc;p=dcpomatic.git diff --git a/src/lib/string_text_file_content.h b/src/lib/string_text_file_content.h index c2de86ce5..aec86181c 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,29 +18,38 @@ */ + #include "content.h" + class Job; + /** @class StringTextFileContent * @brief A SubRip, SSA or ASS file. */ class StringTextFileContent : public Content { public: - StringTextFileContent (boost::shared_ptr, boost::filesystem::path); - StringTextFileContent (boost::shared_ptr, cxml::ConstNodePtr, int); + StringTextFileContent (boost::filesystem::path); + StringTextFileContent (cxml::ConstNodePtr, int); + + std::shared_ptr shared_from_this () { + return std::dynamic_pointer_cast (Content::shared_from_this ()); + } - boost::shared_ptr shared_from_this () { - return boost::dynamic_pointer_cast (Content::shared_from_this ()); + std::shared_ptr shared_from_this () const { + return std::dynamic_pointer_cast (Content::shared_from_this ()); } - void examine (boost::shared_ptr); + void examine (std::shared_ptr film, std::shared_ptr); std::string summary () const; std::string technical_summary () const; void as_xml (xmlpp::Node *, bool with_paths) const; - DCPTime full_length () const; + dcpomatic::DCPTime full_length (std::shared_ptr film) const; + dcpomatic::DCPTime approximate_length () const; + std::string identifier () const; private: - ContentTime _length; + dcpomatic::ContentTime _length; };