diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-17 22:06:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-17 22:06:20 +0100 |
| commit | 27e4c9a264df4572b1095b3610e2a9c1980c0c2b (patch) | |
| tree | 2ba2718b47c6d64202a5080d4b8bf706f60c5e24 /src | |
| parent | 9eda188e03afb8cc4b7767a3dc073069b9669230 (diff) | |
Read scope attribute of ReleaseTerritory.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cpl.cc | 3 | ||||
| -rw-r--r-- | src/cpl.h | 5 |
2 files changed, 8 insertions, 0 deletions
@@ -233,6 +233,9 @@ CPL::read_composition_metadata_asset (cxml::ConstNodePtr node) _full_content_title_text_language = fctt->optional_string_attribute("language"); _release_territory = node->optional_string_child("ReleaseTerritory"); + if (_release_territory) { + _release_territory_scope = node->node_child("ReleaseTerritory")->optional_string_attribute("scope"); + } auto vn = node->optional_node_child("VersionNumber"); if (vn) { @@ -187,6 +187,10 @@ public: _release_territory = t.subtag(); } + boost::optional<std::string> release_territory_scope () const { + return _release_territory_scope; + } + boost::optional<int> version_number () const { return _version_number; } @@ -302,6 +306,7 @@ private: * but must be set as a dcp::LanguageTag to try to ensure that we create compliant output. */ boost::optional<std::string> _release_territory; + boost::optional<std::string> _release_territory_scope; boost::optional<int> _version_number; boost::optional<Status> _status; boost::optional<std::string> _chain; |
