Tidy up equality options slightly.
[libdcp.git] / src / asset.h
index 4d26a4bc83fc3930ae98cf50ba15877320441d8c..6c0a9803adb9e47ead40255e0aefc380a0f20c3f 100644 (file)
@@ -66,15 +66,19 @@ public:
         */
        void write_to_assetmap (std::ostream& s) const;
 
-       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.
         */
        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;
@@ -88,8 +92,10 @@ protected:
        int _length;
        /** Our UUID */
        std::string _uuid;
+
+private:       
        /** Digest of our MXF */
-       std::string _digest;
+       mutable std::string _digest;
 };
 
 }