Make a parent for SMPTELoadFont and InteropLoadFont.
[libdcp.git] / src / reel_sound_asset.h
index 27d2499f2acd98a53f1cf4861441cc4fdfdf7535..0e27f380e299ac4be657bcd9140d026fd66aacd0 100644 (file)
 
 */
 
-#include "reel_asset.h"
+/** @file  src/reel_sound_asset.h
+ *  @brief ReelSoundAsset class.
+ */
+
+#include "reel_mxf_asset.h"
 #include "sound_mxf.h"
 #include <boost/shared_ptr.hpp>
 #include <string>
 
 namespace dcp {
 
-class ReelSoundAsset : public ReelAsset
+/** @class ReelSoundAsset
+ *  @brief Part of a Reel's description which refers to a sound MXF.
+ */
+class ReelSoundAsset : public ReelMXFAsset
 {
 public:
-       ReelSoundAsset (boost::shared_ptr<Content> content, int64_t entry_point);
+       ReelSoundAsset (boost::shared_ptr<dcp::SoundMXF> content, int64_t entry_point);
        ReelSoundAsset (boost::shared_ptr<const cxml::Node>);
 
        boost::shared_ptr<SoundMXF> mxf () {
                return boost::dynamic_pointer_cast<SoundMXF> (_content.object ());
        }
+
+       boost::shared_ptr<const SoundMXF> mxf () const {
+               return boost::dynamic_pointer_cast<const SoundMXF> (_content.object ());
+       }
        
 private:
+       std::string key_type () const;
        std::string cpl_node_name () const;
 };