X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Freel_atmos_asset.h;h=2e4a8d4e36ae7d982ea10f174cd3cae5aed21bef;hb=488e3d1bd5e6b17d49f6db4df14c64f4b64db89b;hp=e93a54148a4fe9ff75ba4cbca49ef777a036e5d1;hpb=367b43df1630a5e4e4173fb50e234803f248f00f;p=libdcp.git diff --git a/src/reel_atmos_asset.h b/src/reel_atmos_asset.h index e93a5414..2e4a8d4e 100644 --- a/src/reel_atmos_asset.h +++ b/src/reel_atmos_asset.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2016-2017 Carl Hetherington + Copyright (C) 2016-2021 Carl Hetherington This file is part of libdcp. @@ -31,42 +31,52 @@ files in the program, then also delete it here. */ + /** @file src/reel_atmos_asset.h - * @brief ReelAtmosAsset class. + * @brief ReelAtmosAsset class */ + #ifndef LIBDCP_REEL_ATMOS_ASSET_H #define LIBDCP_REEL_ATMOS_ASSET_H -#include "reel_asset.h" + +#include "reel_file_asset.h" #include "atmos_asset.h" -#include "reel_mxf.h" + namespace dcp { + class AtmosAsset; + /** @class ReelAtmosAsset - * @brief Part of a Reel's description which refers to a Atmos MXF. + * @brief Part of a Reel's description which refers to a Atmos MXF */ -class ReelAtmosAsset : public ReelAsset, public ReelMXF +class ReelAtmosAsset : public ReelFileAsset { public: - ReelAtmosAsset (boost::shared_ptr asset, int64_t entry_point); - explicit ReelAtmosAsset (boost::shared_ptr); + ReelAtmosAsset (std::shared_ptr asset, int64_t entry_point); + explicit ReelAtmosAsset (std::shared_ptr); - boost::shared_ptr asset () const { + std::shared_ptr asset () const { return asset_of_type (); } - xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const; + xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const override; + bool equals (std::shared_ptr, EqualityOptions, NoteHandler) const; private: - std::string key_type () const; - std::string cpl_node_name (Standard standard) const; - std::pair cpl_node_namespace (Standard) const; + boost::optional key_type () const override { + return std::string("MDEK"); + } + std::string cpl_node_name (Standard standard) const override; + std::pair cpl_node_namespace () const override; }; + } + #endif