X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_content_type.h;h=ff10933e0bedd88b376e1f2baaecf53519478670;hb=694fa81296e7fc8215f15414bd773354b253e07e;hp=2c6d1879be59fd7f35dd7bf7f4e391f937d44cc4;hpb=21e682c5eb1e0957e8fdae155028be65532ed96e;p=dcpomatic.git diff --git a/src/lib/dcp_content_type.h b/src/lib/dcp_content_type.h index 2c6d1879b..ff10933e0 100644 --- a/src/lib/dcp_content_type.h +++ b/src/lib/dcp_content_type.h @@ -17,32 +17,40 @@ */ -/** @file src/content_type.h - * @brief A description of the type of content for a DCP (e.g. feature, trailer etc.) +#ifndef DCPOMATIC_DCP_CONTENT_TYPE_H +#define DCPOMATIC_DCP_CONTENT_TYPE_H + +/** @file src/dcp_content_type.h + * @brief DCPContentType class. */ +#include #include #include -#include /** @class DCPContentType * @brief A description of the type of content for a DCP (e.g. feature, trailer etc.) */ -class DCPContentType +class DCPContentType : public boost::noncopyable { public: - DCPContentType (std::string, libdcp::DCP::ContentType); + DCPContentType (std::string, dcp::ContentKind, std::string); /** @return user-visible `pretty' name */ std::string pretty_name () const { return _pretty_name; } - libdcp::DCP::ContentType libdcp_type () const { - return _libdcp_type; + dcp::ContentKind libdcp_kind () const { + return _libdcp_kind; + } + + std::string isdcf_name () const { + return _isdcf_name; } static DCPContentType const * from_pretty_name (std::string); + static DCPContentType const * from_isdcf_name (std::string); static DCPContentType const * from_index (int); static int as_index (DCPContentType const *); static std::vector all (); @@ -50,9 +58,11 @@ public: private: std::string _pretty_name; - libdcp::DCP::ContentType _libdcp_type; + dcp::ContentKind _libdcp_kind; + std::string _isdcf_name; /** All available DCP content types */ static std::vector _dcp_content_types; }; - + +#endif