diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-08-18 18:04:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-08-18 18:04:49 +0100 |
| commit | c2a97b6f83a32483817d02194a1e7c8d6828b0bb (patch) | |
| tree | 538dc2cf638cd6dd184a4904a950e69082a55e5b /src/lib/cinema.cc | |
| parent | 99856300c7080f7602507ae6f64b870200710736 (diff) | |
Include tidying.
Diffstat (limited to 'src/lib/cinema.cc')
| -rw-r--r-- | src/lib/cinema.cc | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/lib/cinema.cc b/src/lib/cinema.cc index f77439238..11bc888da 100644 --- a/src/lib/cinema.cc +++ b/src/lib/cinema.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013 Carl Hetherington <cth@carlh.net> + Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,6 +18,7 @@ */ #include "cinema.h" +#include "screen.h" #include <libcxml/cxml.h> #include <libxml++/libxml++.h> @@ -66,22 +67,3 @@ Cinema::remove_screen (shared_ptr<Screen> s) { _screens.remove (s); } - -Screen::Screen (cxml::ConstNodePtr node) - : name (node->string_child ("Name")) -{ - if (node->optional_string_child ("Certificate")) { - certificate = dcp::Certificate (node->string_child ("Certificate")); - } -} - -void -Screen::as_xml (xmlpp::Element* parent) const -{ - parent->add_child("Name")->add_child_text (name); - if (certificate) { - parent->add_child("Certificate")->add_child_text (certificate->certificate (true)); - } -} - - |
