X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fcontent_kind.h;fp=src%2Fcontent_kind.h;h=39872feab2a33c88b060c110e3589b575bdca747;hb=1d13ce8be4df51e85b7222a7c9d357366c841a89;hp=08aa17b49936aedfcc556ef1bea6fb2a46381737;hpb=6740903432bca2ab447a47ac773a735d4f1f2e50;p=libdcp.git 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 scope) + : _name(name) + , _scope(scope) + {} + std::string name() const { return _name; } + boost::optional 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 all(); @@ -73,6 +86,7 @@ private: {} std::string _name; + boost::optional _scope; };