summaryrefslogtreecommitdiff
path: root/src/reel_sound_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-04-13 23:36:22 +0200
committerCarl Hetherington <cth@carlh.net>2021-04-13 23:36:22 +0200
commit488e3d1bd5e6b17d49f6db4df14c64f4b64db89b (patch)
tree641fcf167b845df6eca68c54fdf1110a7a07a739 /src/reel_sound_asset.h
parent51ae14c7e304d4fbc8d7524d584f3f4762d51f67 (diff)
Remove ReelEncryptableAsset and tidy up a bit.
Diffstat (limited to 'src/reel_sound_asset.h')
-rw-r--r--src/reel_sound_asset.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/reel_sound_asset.h b/src/reel_sound_asset.h
index bf686ec9..0b4d0f9d 100644
--- a/src/reel_sound_asset.h
+++ b/src/reel_sound_asset.h
@@ -37,8 +37,7 @@
*/
-#include "reel_encryptable_asset.h"
-#include "reel_asset.h"
+#include "reel_file_asset.h"
#include "sound_asset.h"
#include <memory>
#include <string>
@@ -50,27 +49,26 @@ namespace dcp {
/** @class ReelSoundAsset
* @brief Part of a Reel's description which refers to a sound asset
*/
-class ReelSoundAsset : public ReelFileAsset, public ReelEncryptableAsset
+class ReelSoundAsset : public ReelFileAsset
{
public:
ReelSoundAsset (std::shared_ptr<dcp::SoundAsset> content, int64_t entry_point);
explicit ReelSoundAsset (std::shared_ptr<const cxml::Node>);
- xmlpp::Node* write_to_cpl (xmlpp::Node* node, Standard standard) const;
bool equals (std::shared_ptr<const ReelSoundAsset>, EqualityOptions, NoteHandler) const;
/** @return the SoundAsset that this object refers to */
std::shared_ptr<SoundAsset> asset () {
- return asset_of_type<SoundAsset> ();
+ return asset_of_type<SoundAsset>();
}
/** @return the SoundAsset that this object refers to */
std::shared_ptr<const SoundAsset> asset () const {
- return asset_of_type<const SoundAsset> ();
+ return asset_of_type<const SoundAsset>();
}
private:
- std::string key_type () const;
+ boost::optional<std::string> key_type () const;
std::string cpl_node_name (Standard standard) const;
};