X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_mxf_content.h;h=5a04c3da9c292405b83f7e3f0c4e20fe73995077;hb=c269ebfdae53a2f5c5e9acc6f6588ebb47eeac9d;hp=6236568b1cad89837627c98ad5f68531e9173d2f;hpb=f67bc45820b4e56f90eecb97ba3b7762c119f9b5;p=dcpomatic.git diff --git a/src/lib/video_mxf_content.h b/src/lib/video_mxf_content.h index 6236568b1..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,29 +18,32 @@ */ + #include "content.h" + class VideoMXFContent : public Content { public: VideoMXFContent (boost::filesystem::path path); VideoMXFContent (cxml::ConstNodePtr node, int version); - 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()); } - boost::shared_ptr shared_from_this () const { - 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 film, 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 (boost::shared_ptr film) 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); };