Add new write() method.
[libdcp.git] / src / mono_picture_asset.h
index 8c1521469538c54efe7b237bf42b82bf63f5871e..505d3c20923a9f2292308d2847ddab8e2846ad93 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
@@ -68,8 +68,12 @@ public:
         */
        explicit MonoPictureAsset (Fraction edit_rate, Standard standard);
 
-       /** Start a progressive write to a MonoPictureAsset */
-       std::shared_ptr<PictureAssetWriter> start_write (boost::filesystem::path, bool);
+       /** Start a progressive write to a MonoPictureAsset.
+        *  @path file File to write to.
+        *  @path overwrite true to overwrite an existing file; for use when continuing a write which
+        *  previously failed.  If in doubt, use false here.
+        */
+       std::shared_ptr<PictureAssetWriter> start_write (boost::filesystem::path file, bool overwrite);
        std::shared_ptr<MonoPictureAssetReader> start_read () const;
 
        bool equals (
@@ -82,6 +86,8 @@ private:
        std::string cpl_node_name () const;
 };
 
+
 }
 
+
 #endif