diff options
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); +} |
