X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_content_type.h;h=c370fef4d52fa3229e7f677bc87eb24efdcb5d70;hb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;hp=cb858cf5a34975a169fcef5dc72b37c9fc438a2b;hpb=75be8cbd1d3307ea62fe8e79543ca518f4ee7bc2;p=dcpomatic.git diff --git a/src/lib/dcp_content_type.h b/src/lib/dcp_content_type.h index cb858cf5a..c370fef4d 100644 --- a/src/lib/dcp_content_type.h +++ b/src/lib/dcp_content_type.h @@ -17,32 +17,40 @@ */ +#ifndef DCPOMATIC_DCP_CONTENT_TYPE_H +#define DCPOMATIC_DCP_CONTENT_TYPE_H + /** @file src/content_type.h * @brief A description of the type of content for a DCP (e.g. feature, trailer etc.) */ +#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::ContentKind); + DCPContentType (std::string, dcp::ContentKind, std::string); /** @return user-visible `pretty' name */ std::string pretty_name () const { return _pretty_name; } - libdcp::ContentKind libdcp_kind () const { + 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::ContentKind _libdcp_kind; + dcp::ContentKind _libdcp_kind; + std::string _isdcf_name; /** All available DCP content types */ static std::vector _dcp_content_types; }; - + +#endif