diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-12-16 20:20:47 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-12-16 20:20:47 +0000 |
| commit | ff896d5f5ec20e1371b423bb746c32fa55cc126a (patch) | |
| tree | bcd6f76709753812c8a988ad43c1f7b8727c6f28 /src/reel_stereo_picture_asset.h | |
| parent | 7a8bf6efd00161b1ce7bb160bd50a0c11c28d792 (diff) | |
Ref does not need to be a template since it's always used for Asset.
Diffstat (limited to 'src/reel_stereo_picture_asset.h')
| -rw-r--r-- | src/reel_stereo_picture_asset.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/reel_stereo_picture_asset.h b/src/reel_stereo_picture_asset.h index 72b225bc..3c68f887 100644 --- a/src/reel_stereo_picture_asset.h +++ b/src/reel_stereo_picture_asset.h @@ -25,6 +25,7 @@ #define LIBDCP_REEL_STEREO_PICTURE_ASSET_H #include "reel_picture_asset.h" +#include "stereo_picture_asset.h" namespace dcp { @@ -40,6 +41,16 @@ public: ReelStereoPictureAsset (boost::shared_ptr<StereoPictureAsset> content, int64_t entry_point); ReelStereoPictureAsset (boost::shared_ptr<const cxml::Node>); + /** @return the StereoPictureAsset that this object refers to */ + boost::shared_ptr<const StereoPictureAsset> stereo_asset () const { + return boost::dynamic_pointer_cast<const StereoPictureAsset> (_asset_ref.asset ()); + } + + /** @return the StereoPictureAsset that this object refers to */ + boost::shared_ptr<StereoPictureAsset> stereo_asset () { + return boost::dynamic_pointer_cast<StereoPictureAsset> (_asset_ref.asset ()); + } + private: std::string cpl_node_name () const; std::pair<std::string, std::string> cpl_node_attribute (Standard standard) const; @@ -48,4 +59,3 @@ private: } #endif - |
