Add free-text notes field to cinemas and screens.
[dcpomatic.git] / src / lib / cinema.cc
index e9a7dce6882e08f52722e7733ea05071d6b88443..6e651dc764d467d64f98424cb1ff5cb19301ffed 100644 (file)
@@ -32,6 +32,7 @@ using boost::shared_ptr;
 
 Cinema::Cinema (cxml::ConstNodePtr node)
        : name (node->string_child ("Name"))
+       , notes (node->optional_string_child("Notes").get_value_or(""))
 {
        BOOST_FOREACH (cxml::ConstNodePtr i, node->node_children("Email")) {
                emails.push_back (i->content ());
@@ -67,6 +68,8 @@ Cinema::as_xml (xmlpp::Element* parent) const
                parent->add_child("Email")->add_child_text (i);
        }
 
+       parent->add_child("Notes")->add_child_text (notes);
+
        parent->add_child("UTCOffsetHour")->add_child_text (dcp::raw_convert<string> (_utc_offset_hour));
        parent->add_child("UTCOffsetMinute")->add_child_text (dcp::raw_convert<string> (_utc_offset_minute));