X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Freel_sound_asset.h;h=fd1a63fe60046511015b041839d065fa37ac0268;hb=a68b877d96a9e9f366f27752e071bc0e895e9dc7;hp=0e27f380e299ac4be657bcd9140d026fd66aacd0;hpb=da228f37426ac999f02e03e558acef5501b22361;p=libdcp.git diff --git a/src/reel_sound_asset.h b/src/reel_sound_asset.h index 0e27f380..fd1a63fe 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,34 +21,38 @@ * @brief ReelSoundAsset class. */ -#include "reel_mxf_asset.h" -#include "sound_mxf.h" +#include "reel_mxf.h" +#include "reel_asset.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 ReelMXFAsset +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 asset_of_type (); } - boost::shared_ptr mxf () const { - return boost::dynamic_pointer_cast (_content.object ()); + /** @return the SoundAsset that this object refers to */ + boost::shared_ptr asset () const { + return asset_of_type (); } - + private: std::string key_type () const; std::string cpl_node_name () const; }; } -