Tidying.
[libdcp.git] / src / mono_picture_asset_reader.h
index 08f9fde0f4a23759a011d4693f01c0ae2bf818ca..5bead791f9ffb6445b33b2f5e29ea4d04f688336 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2016-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
     files in the program, then also delete it here.
 */
 
+
+/** @file  src/mono_picture_asset_reader.h
+ *  @brief MonoPictureAssetReader typedef
+ */
+
+
+#ifndef LIBDCP_MONO_PICTURE_ASSET_READER_H
+#define LIBDCP_MONO_PICTURE_ASSET_READER_H
+
+
 #include "asset_reader.h"
-#include <boost/shared_ptr.hpp>
+#include "mono_picture_frame.h"
 
-namespace ASDCP {
-       namespace JP2K {
-               class MXFReader;
-       }
-}
 
 namespace dcp {
 
-class MonoPictureFrame;
-class MonoPictureAsset;
 
-class MonoPictureAssetReader : public AssetReader
-{
-public:
-       ~MonoPictureAssetReader ();
-       boost::shared_ptr<const MonoPictureFrame> get_frame (int n) const;
+typedef AssetReader<ASDCP::JP2K::MXFReader, MonoPictureFrame> MonoPictureAssetReader;
 
-private:
-       friend class MonoPictureAsset;
 
-       explicit MonoPictureAssetReader (MonoPictureAsset const *);
+}
 
-       ASDCP::JP2K::MXFReader* _reader;
-};
 
-}
+#endif