X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fatmos_mxf_content.h;h=57f041774c1b3776926545b7b77c025c2c872c33;hb=fc1441eeaa3c0805c37809685ea7a3f5ca173666;hp=0f5225c2ec7fa8ad871862b05d10399177a48a43;hpb=3412af70b950dcdc604413ef05c26becda6da789;p=dcpomatic.git diff --git a/src/lib/atmos_mxf_content.h b/src/lib/atmos_mxf_content.h index 0f5225c2e..57f041774 100644 --- a/src/lib/atmos_mxf_content.h +++ b/src/lib/atmos_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,30 @@ */ + #include "content.h" +#include + class AtmosMXFContent : public Content { public: - AtmosMXFContent (boost::shared_ptr film, boost::filesystem::path path); - AtmosMXFContent (boost::shared_ptr film, cxml::ConstNodePtr node, int version); + AtmosMXFContent (boost::filesystem::path path); + AtmosMXFContent (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()); } - void examine (boost::shared_ptr job); - std::string summary () const; - void as_xml (xmlpp::Node* node, bool with_path) const; - DCPTime full_length () const; + std::shared_ptr shared_from_this () const { + return std::dynamic_pointer_cast (Content::shared_from_this()); + } - static bool valid_mxf (boost::filesystem::path path); + void examine (std::shared_ptr film, std::shared_ptr job) override; + std::string summary () const override; + void as_xml (xmlpp::Node* node, bool with_path) const override; + dcpomatic::DCPTime full_length (std::shared_ptr film) const override; + dcpomatic::DCPTime approximate_length () const override; -private: - Frame _length; + static bool valid_mxf (boost::filesystem::path path); };