From 0fa60920228c591f1183149d79c88302d3ce01fb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 26 Aug 2020 23:02:10 +0200 Subject: Add ContentVersion class. --- src/types.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/types.cc') diff --git a/src/types.cc b/src/types.cc index b329396d..746b6f6a 100644 --- a/src/types.cc +++ b/src/types.cc @@ -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); +} + -- cgit v1.2.3