#define LIBDCP_DCP_H
#include "types.h"
-#include "certificates.h"
+#include "certificate.h"
#include "metadata.h"
#include <boost/shared_ptr.hpp>
#include <boost/signals2.hpp>
namespace dcp
{
-class Content;
+class Content;
class Reel;
class CPL;
class XMLMetadata;
-class Signer;
+class CertificateChain;
class DecryptedKDM;
class Asset;
class DCPReadError;
-namespace parse {
- class AssetMap;
-}
-
/** @class DCP
* @brief A class to create or read a DCP.
*/
-
+
class DCP : public boost::noncopyable
{
public:
DCP (boost::filesystem::path directory);
typedef std::list<boost::shared_ptr<DCPReadError> > ReadErrors;
-
+
/** Read the DCP's structure into this object.
* @param keep_going true to try to keep going in the face of (some) errors.
* @param errors List of errors that will be added to if keep_going is true.
*/
bool equals (DCP const & other, EqualityOptions options, NoteHandler note) const;
- void add (boost::shared_ptr<Asset> asset);
+ void add (boost::shared_ptr<CPL> cpl);
std::list<boost::shared_ptr<CPL> > cpls () const;
-
- /** @return All this DCP's assets (note that CPLs are assets) */
- std::list<boost::shared_ptr<Asset> > assets () const {
- return _assets;
- }
+ std::list<boost::shared_ptr<Asset> > assets () const;
bool encrypted () const;
void write_xml (
Standard standard,
XMLMetadata metadata = XMLMetadata (),
- boost::shared_ptr<const Signer> signer = boost::shared_ptr<const Signer> ()
+ boost::shared_ptr<const CertificateChain> signer = boost::shared_ptr<const CertificateChain> ()
);
private:
Standard standard,
std::string pkl_uuid,
XMLMetadata metadata,
- boost::shared_ptr<const Signer> signer
+ boost::shared_ptr<const CertificateChain> signer
) const;
-
+
void write_volindex (Standard standard) const;
/** Write the ASSETMAP file.
/** the directory that we are writing to */
boost::filesystem::path _directory;
- /** the assets that make up this DCP */
- std::list<boost::shared_ptr<Asset> > _assets;
+ /** the CPLs that make up this DCP */
+ std::list<boost::shared_ptr<CPL> > _cpls;
};
}