X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Freel_sound_asset.h;h=8f39e8a094c8f474f55f1033b98711a607e1ef18;hb=9e523d8a4062ad52330dff6c2ba50e54184c9bb2;hp=fb233016e3f63b3e112253b7e5e037db228644f1;hpb=f9862aff32f7ea5aa10f9362d7598480b1c9cf28;p=libdcp.git diff --git a/src/reel_sound_asset.h b/src/reel_sound_asset.h index fb233016..8f39e8a0 100644 --- a/src/reel_sound_asset.h +++ b/src/reel_sound_asset.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2014-2015 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,27 +21,37 @@ * @brief ReelSoundAsset class. */ +#include "reel_mxf.h" #include "reel_asset.h" -#include "sound_mxf.h" +#include "sound_asset.h" #include #include namespace dcp { /** @class ReelSoundAsset - * @brief Part of a Reel's description which refers to a sound MXF. + * @brief Part of a Reel's description which refers to a sound asset. */ -class ReelSoundAsset : public ReelAsset +class ReelSoundAsset : public ReelAsset, public ReelMXF { public: - ReelSoundAsset (boost::shared_ptr content, int64_t entry_point); + ReelSoundAsset (boost::shared_ptr content, int64_t entry_point); ReelSoundAsset (boost::shared_ptr); - boost::shared_ptr mxf () { - return boost::dynamic_pointer_cast (_content.object ()); + void write_to_cpl (xmlpp::Node* node, Standard standard) const; + + /** @return the SoundAsset that this object refers to */ + boost::shared_ptr asset () { + return boost::dynamic_pointer_cast (_asset_ref.object ()); + } + + /** @return the SoundAsset that this object refers to */ + boost::shared_ptr asset () const { + return boost::dynamic_pointer_cast (_asset_ref.object ()); } - + private: + std::string key_type () const; std::string cpl_node_name () const; };