Add some explicit declarations to constructors.
[libdcp.git] / src / reel_stereo_picture_asset.h
index 72b225bcc9c7f6ef3cd68fe6b82679d81e0dfab2..a85c10d41540e7f02bb860f2a32e24668e477587 100644 (file)
@@ -1,20 +1,20 @@
 /*
     Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net>
 
-    This program is free software; you can redistribute it and/or modify
+    This file is part of libdcp.
+
+    libdcp is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; either version 2 of the License, or
     (at your option) any later version.
 
-    This program is distributed in the hope that it will be useful,
+    libdcp is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.
 
     You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
+    along with libdcp.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 /** @file  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 {
 
@@ -38,7 +39,17 @@ class ReelStereoPictureAsset : public ReelPictureAsset
 public:
        ReelStereoPictureAsset ();
        ReelStereoPictureAsset (boost::shared_ptr<StereoPictureAsset> content, int64_t entry_point);
-       ReelStereoPictureAsset (boost::shared_ptr<const cxml::Node>);
+       explicit ReelStereoPictureAsset (boost::shared_ptr<const cxml::Node>);
+
+       /** @return the StereoPictureAsset that this object refers to */
+       boost::shared_ptr<const StereoPictureAsset> stereo_asset () const {
+               return asset_of_type<const StereoPictureAsset> ();
+       }
+
+       /** @return the StereoPictureAsset that this object refers to */
+       boost::shared_ptr<StereoPictureAsset> stereo_asset () {
+               return asset_of_type<StereoPictureAsset> ();
+       }
 
 private:
        std::string cpl_node_name () const;
@@ -48,4 +59,3 @@ private:
 }
 
 #endif
-