Use a vector<ContentVersion> instead of just one, to support the
[libdcp.git] / src / types.cc
index b329396d92b84aa1b7f5ee903c5f9469fd5546d2..746b6f6a81e234385225cbec68891448dc478132 100644 (file)
@@ -462,3 +462,13 @@ dcp::operator<< (ostream& s, Rating const & r)
        s << r.agency << " " << r.label;
        return s;
 }
+
+
+void
+ContentVersion::as_xml (xmlpp::Element* parent) const
+{
+       xmlpp::Node* cv = parent->add_child("ContentVersion");
+       cv->add_child("Id")->add_child_text(id);
+       cv->add_child("LabelText")->add_child_text(label_text);
+}
+