Use an enum instead of a bool in PictureAsset::start_write().
[libdcp.git] / src / mono_picture_asset.h
index 7a37fa736854d3b43e1143491fb8e62d7c171796..625d6ac8fecb9503b7c0c07b332cdc1175e79e1d 100644 (file)
@@ -70,10 +70,11 @@ public:
 
        /** 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.
+        *  @path behaviour OVERWRITE_EXISTING to overwrite and potentially add to an existing file
+        *  (after a write previously failed), MAKE_NEW to create a new file.
+        *  If in doubt, use MAKE_NEW here.
         */
-       std::shared_ptr<PictureAssetWriter> start_write (boost::filesystem::path file, bool overwrite) override;
+       std::shared_ptr<PictureAssetWriter> start_write(boost::filesystem::path file, Behaviour behaviour) override;
        std::shared_ptr<MonoPictureAssetReader> start_read () const;
 
        bool equals (