diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-04-27 01:50:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-04-29 22:51:18 +0100 |
| commit | 068291b7233b01573863d7fb5eda2a82883c748d (patch) | |
| tree | 1bca551006315fd234b2408e1be47fcd2970916d /src/lib/cinema.cc | |
| parent | 1863fff137bda1c0d3702a845cc79afbfc8c74c4 (diff) | |
Add free-text notes field to cinemas and screens.
Diffstat (limited to 'src/lib/cinema.cc')
| -rw-r--r-- | src/lib/cinema.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/cinema.cc b/src/lib/cinema.cc index e9a7dce68..6e651dc76 100644 --- a/src/lib/cinema.cc +++ b/src/lib/cinema.cc @@ -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)); |
