/*
- Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
*/
+#include <dcp/content_kind.h>
#include <dcp/dcp.h>
#include <string>
#include <vector>
public:
DCPContentType (std::string, dcp::ContentKind, std::string);
- DCPContentType (DCPContentType const&) = delete;
- DCPContentType& operator= (DCPContentType const&) = delete;
-
/** @return user-visible `pretty' name */
std::string pretty_name () const {
return _pretty_name;
static DCPContentType const * from_isdcf_name (std::string);
static DCPContentType const * from_libdcp_kind (dcp::ContentKind);
static DCPContentType const * from_index (int);
- static int as_index (DCPContentType const *);
+ static boost::optional<int> as_index (DCPContentType const *);
static std::vector<DCPContentType const *> all ();
static void setup_dcp_content_types ();
std::string _isdcf_name;
/** All available DCP content types */
- static std::vector<DCPContentType const *> _dcp_content_types;
+ static std::vector<DCPContentType> _dcp_content_types;
};