*/
-#include <iostream>
-#include <libcxml/cxml.h>
-#include <dcp/raw_convert.h>
#include "isdcf_metadata.h"
+#include "raw_convert.h"
+#include <libcxml/cxml.h>
+#include <iostream>
#include "i18n.h"
using std::string;
using boost::shared_ptr;
-using dcp::raw_convert;
ISDCFMetadata::ISDCFMetadata (cxml::ConstNodePtr node)
: content_version (node->number_child<int> ("ContentVersion"))
root->add_child("TwoDVersionOfThreeD")->add_child_text (two_d_version_of_three_d ? "1" : "0");
root->add_child("MasteredLuminance")->add_child_text (mastered_luminance);
}
+
+bool
+operator== (ISDCFMetadata const & a, ISDCFMetadata const & b)
+{
+ return a.content_version == b.content_version &&
+ a.audio_language == b.audio_language &&
+ a.subtitle_language == b.subtitle_language &&
+ a.territory == b.territory &&
+ a.rating == b.rating &&
+ a.studio == b.studio &&
+ a.facility == b.facility &&
+ a.package_type == b.package_type &&
+ a.temp_version == b.temp_version &&
+ a.pre_release == b.pre_release &&
+ a.red_band == b.red_band &&
+ a.chain == b.chain &&
+ a.two_d_version_of_three_d == b.two_d_version_of_three_d &&
+ a.mastered_luminance == b.mastered_luminance;
+}