X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_mxf_content.h;h=5a04c3da9c292405b83f7e3f0c4e20fe73995077;hb=37d2bf172e9061f24c874d5416bd3c8f9719c823;hp=1fa428704d620084eaa0645aa118d8fed389bc74;hpb=4079beaa74c67e81ae8e40bd715dcc68cdbdf676;p=dcpomatic.git diff --git a/src/lib/video_mxf_content.h b/src/lib/video_mxf_content.h index 1fa428704..5a04c3da9 100644 --- a/src/lib/video_mxf_content.h +++ b/src/lib/video_mxf_content.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2016 Carl Hetherington + Copyright (C) 2016-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,25 +18,32 @@ */ + #include "content.h" + class VideoMXFContent : public Content { public: - VideoMXFContent (boost::shared_ptr film, boost::filesystem::path path); - VideoMXFContent (boost::shared_ptr film, cxml::ConstNodePtr node, int version); + VideoMXFContent (boost::filesystem::path path); + VideoMXFContent (cxml::ConstNodePtr node, int version); + + 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 job); - std::string summary () const; - std::string technical_summary () const; - std::string identifier () const; - void as_xml (xmlpp::Node* node, bool with_paths) const; - DCPTime full_length () const; - void add_properties (std::list& p) const; + void examine (std::shared_ptr film, std::shared_ptr job) override; + std::string summary () const override; + std::string technical_summary () const override; + std::string identifier () const override; + void as_xml (xmlpp::Node* node, bool with_paths) const override; + dcpomatic::DCPTime full_length (std::shared_ptr film) const override; + dcpomatic::DCPTime approximate_length () const override; + void add_properties (std::shared_ptr film, std::list& p) const override; static bool valid_mxf (boost::filesystem::path path); };