return SHADOW;
}
- boost::throw_exception (DCPReadError ("unknown subtitle effect type"));
+ boost::throw_exception (ReadError ("unknown subtitle effect type"));
}
string
return HALIGN_RIGHT;
}
- boost::throw_exception (DCPReadError ("unknown subtitle halign type"));
+ boost::throw_exception (ReadError ("unknown subtitle halign type"));
}
string
return VALIGN_BOTTOM;
}
- boost::throw_exception (DCPReadError ("unknown subtitle valign type"));
+ boost::throw_exception (ReadError ("unknown subtitle valign type"));
}
string
return DIRECTION_BTT;
}
- boost::throw_exception (DCPReadError ("unknown subtitle direction type"));
+ boost::throw_exception (ReadError ("unknown subtitle direction type"));
}
/** Convert a content kind to a string which can be used in a
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);
+}
+