diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-20 22:25:55 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-20 22:25:55 +0000 |
| commit | 13a693315da47ee8c1306c92f9af2e95d4e6829e (patch) | |
| tree | 4eda98c12ba36b0df450f7d3000d1ec0f52925ac /src/interop_load_font.cc | |
| parent | 6e4224ae8c9efa7f9e56e511531b7f53d8bd4f9c (diff) | |
Basic comparison of subtitle assets; tweaks to InteropLoadFont.
Diffstat (limited to 'src/interop_load_font.cc')
| -rw-r--r-- | src/interop_load_font.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/interop_load_font.cc b/src/interop_load_font.cc index ec2653ef..c40d64c4 100644 --- a/src/interop_load_font.cc +++ b/src/interop_load_font.cc @@ -25,6 +25,13 @@ using boost::shared_ptr; using boost::optional; using namespace dcp; +InteropLoadFont::InteropLoadFont (string id_, string uri_) + : id (id_) + , uri (uri_) +{ + +} + InteropLoadFont::InteropLoadFont (shared_ptr<const cxml::Node> node) { optional<string> x = node->optional_string_attribute ("Id"); @@ -35,3 +42,15 @@ InteropLoadFont::InteropLoadFont (shared_ptr<const cxml::Node> node) uri = node->string_attribute ("URI"); } + +bool +dcp::operator== (InteropLoadFont const & a, InteropLoadFont const & b) +{ + return a.id == b.id && a.uri == b.uri; +} + +bool +dcp::operator!= (InteropLoadFont const & a, InteropLoadFont const & b) +{ + return !(a == b); +} |
