X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Freel_sound_asset.h;h=fd1a63fe60046511015b041839d065fa37ac0268;hb=38ff2954f40131a12aa8a037b9fc6c4abd3894b9;hp=42835c848f192652065db6f0b46368a184b68854;hpb=bfb33feb40c5b014e9eae3958b1ecb8161f1d090;p=libdcp.git diff --git a/src/reel_sound_asset.h b/src/reel_sound_asset.h index 42835c84..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,33 +21,38 @@ * @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 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; }; } -