X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Freel.h;h=5dcb97c20e48f58d20f8f8d8b6957fb03aa09503;hb=b405b414993458babbb4532ddeeef9928ec7c06e;hp=00278a143e4c0d13f6a3a29995d6bc9a2801ff7d;hpb=938f413bb4ebecd51c805027e331cb7eb0ca9502;p=libdcp.git diff --git a/src/reel.h b/src/reel.h index 00278a14..5dcb97c2 100644 --- a/src/reel.h +++ b/src/reel.h @@ -17,10 +17,14 @@ */ +#ifndef LIBDCP_REEL_H +#define LIBDCP_REEL_H + #include #include #include #include +#include #include "types.h" namespace xmlpp { @@ -30,17 +34,18 @@ namespace xmlpp { namespace libdcp { class PictureAsset; -class SoundAsset; -class SubtitleAsset; +class SoundAsset; +class SubtitleAsset; +class KDM; /** @brief A reel within a DCP; the part which actually contains picture, sound and subtitle data */ class Reel { public: Reel ( - boost::shared_ptr picture, - boost::shared_ptr sound, - boost::shared_ptr subtitle + boost::shared_ptr picture, + boost::shared_ptr sound, + boost::shared_ptr subtitle ) : _main_picture (picture) , _main_sound (sound) @@ -59,14 +64,22 @@ public: return _main_subtitle; } - void write_to_cpl (xmlpp::Node *) const; + void write_to_cpl (xmlpp::Element *, bool) const; + + bool encrypted () const; + void set_mxf_keys (libdcp::Key); + bool equals (boost::shared_ptr other, EqualityOptions opt, boost::function notes) const; + void add_kdm (KDM const &); + private: - boost::shared_ptr _main_picture; - boost::shared_ptr _main_sound; - boost::shared_ptr _main_subtitle; + boost::shared_ptr _main_picture; + boost::shared_ptr _main_sound; + boost::shared_ptr _main_subtitle; }; } + +#endif