Use an enum instead of a bool in PictureAsset::start_write().
[libdcp.git] / src / mono_picture_asset.h
index 505d3c20923a9f2292308d2847ddab8e2846ad93..625d6ac8fecb9503b7c0c07b332cdc1175e79e1d 100644 (file)
@@ -70,17 +70,18 @@ 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);
+       std::shared_ptr<PictureAssetWriter> start_write(boost::filesystem::path file, Behaviour behaviour) override;
        std::shared_ptr<MonoPictureAssetReader> start_read () const;
 
        bool equals (
                std::shared_ptr<const Asset> other,
                EqualityOptions opt,
                NoteHandler note
-               ) const;
+               ) const override;
 
 private:
        std::string cpl_node_name () const;