40 #ifndef LIBDCP_REEL_FILE_ASSET_H
41 #define LIBDCP_REEL_FILE_ASSET_H
46 #include <boost/optional.hpp>
56 ReelFileAsset (std::shared_ptr<Asset> asset, boost::optional<std::string> key_id, std::string
id,
Fraction edit_rate, int64_t intrinsic_duration, int64_t entry_point);
57 explicit ReelFileAsset (std::shared_ptr<const cxml::Node> node);
59 virtual xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard)
const override;
74 boost::optional<std::string>
hash ()
const {
78 void set_hash (std::string h) {
82 bool file_asset_equals (std::shared_ptr<const ReelFileAsset> other, EqualityOptions opt, NoteHandler note)
const;
84 virtual boost::optional<std::string> key_type ()
const {
88 bool encryptable ()
const override {
89 return static_cast<bool>(key_type());
92 boost::optional<std::string> key_id ()
const {
96 bool encrypted ()
const {
97 return static_cast<bool>(key_id());
103 std::shared_ptr<T> asset_of_type ()
const {
108 std::shared_ptr<T> asset_of_type () {
A fraction (i.e. a thing with an integer numerator and an integer denominator).
An entry in a <Reel> which refers to a use of a piece of content.
Ref const & asset_ref() const
boost::optional< std::string > _key_id
The <KeyId> from the reel's entry for this asset, if there is one.
boost::optional< std::string > _hash
boost::optional< std::string > hash() const
A reference to an asset which is identified by a universally-unique identifier (UUID)
std::shared_ptr< Asset > asset() const
Namespace for everything in libdcp.