Tidy up equality options slightly.
[libdcp.git] / src / asset.h
index e078f44bd6e8da5efec9982d8f035b19bc2e88fb..6c0a9803adb9e47ead40255e0aefc380a0f20c3f 100644 (file)
@@ -66,10 +66,11 @@ public:
         */
        void write_to_assetmap (std::ostream& s) const;
 
-       virtual std::list<std::string> equals (boost::shared_ptr<const Asset> other, EqualityFlags flags) const;
+       virtual std::list<std::string> equals (boost::shared_ptr<const Asset> other, EqualityOptions opt) const;
 
 protected:
        friend class PictureAsset;
+       friend class SoundAsset;
        
        /** Fill in a ADSCP::WriteInfo struct.
         *  @param w struct to fill in.
@@ -77,6 +78,7 @@ protected:
        void fill_writer_info (ASDCP::WriterInfo* w) const;
 
        boost::filesystem::path mxf_path () const;
+       std::string digest () const;
 
        /** Directory that our MXF file is in */
        std::string _directory;
@@ -90,8 +92,10 @@ protected:
        int _length;
        /** Our UUID */
        std::string _uuid;
+
+private:       
        /** Digest of our MXF */
-       std::string _digest;
+       mutable std::string _digest;
 };
 
 }