diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-03 01:52:14 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-03 14:46:38 +0200 |
| commit | 1d13ce8be4df51e85b7222a7c9d357366c841a89 (patch) | |
| tree | 1be0a392051a1f520eef79778379497db800c22e /src/content_kind.h | |
| parent | 6740903432bca2ab447a47ac773a735d4f1f2e50 (diff) | |
Properly support ContentKind scope attribute.v1.8.26
Diffstat (limited to 'src/content_kind.h')
| -rw-r--r-- | src/content_kind.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/content_kind.h b/src/content_kind.h index 08aa17b4..39872fea 100644 --- a/src/content_kind.h +++ b/src/content_kind.h @@ -47,10 +47,19 @@ namespace dcp { class ContentKind { public: + ContentKind(std::string name, boost::optional<std::string> scope) + : _name(name) + , _scope(scope) + {} + std::string name() const { return _name; } + boost::optional<std::string> scope() const { + return _scope; + } + static const ContentKind FEATURE; static const ContentKind SHORT; static const ContentKind TRAILER; @@ -61,8 +70,12 @@ public: static const ContentKind POLICY; static const ContentKind PUBLIC_SERVICE_ANNOUNCEMENT; static const ContentKind ADVERTISEMENT; - static const ContentKind EPISODE; + static const ContentKind CLIP; static const ContentKind PROMO; + static const ContentKind STEREOCARD; + static const ContentKind EPISODE; + static const ContentKind HIGHLIGHTS; + static const ContentKind EVENT; static ContentKind from_name(std::string name); static std::vector<ContentKind> all(); @@ -73,6 +86,7 @@ private: {} std::string _name; + boost::optional<std::string> _scope; }; |
