summaryrefslogtreecommitdiff
path: root/src/dcp.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-14 20:15:43 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-14 20:15:43 +0000
commited6a471b61d36a3ba7e8696fa3e5606406c5cf62 (patch)
tree3ca098925eb269c4cd41ff22124773ba7d36c14b /src/dcp.h
parent67cf9c95d190b1f2a67d73c0a7f712e213b6e71a (diff)
parent62ee85a258aa9329544d8542dfbcc40ce8177a7a (diff)
Merge master
Diffstat (limited to 'src/dcp.h')
-rw-r--r--src/dcp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dcp.h b/src/dcp.h
index 63e579de..5a915019 100644
--- a/src/dcp.h
+++ b/src/dcp.h
@@ -60,6 +60,7 @@ public:
std::string signer_key;
};
+/** @brief A CPL within a DCP */
class CPL
{
public:
@@ -125,7 +126,9 @@ private:
/** reels */
std::list<boost::shared_ptr<const Reel> > _reels;
+ /** our UUID */
std::string _uuid;
+ /** a SHA1 digest of our XML */
mutable std::string _digest;
};
@@ -167,8 +170,12 @@ public:
*/
bool equals (DCP const & other, EqualityOptions options, std::list<std::string>& notes) const;
+ /** Add a CPL to this DCP.
+ * @param cpl CPL to add.
+ */
void add_cpl (boost::shared_ptr<CPL> cpl);
+ /** @return The list of CPLs in this DCP */
std::list<boost::shared_ptr<const CPL> > cpls () const {
return _cpls;
}
@@ -194,6 +201,7 @@ private:
*/
void write_assetmap (std::string pkl_uuid, int pkl_length) const;
+ /** @return Assets in all this CPLs in this DCP */
std::list<boost::shared_ptr<const Asset> > assets () const;
struct Files {
@@ -204,6 +212,7 @@ private:
/** the directory that we are writing to */
std::string _directory;
+ /** our CPLs */
std::list<boost::shared_ptr<const CPL> > _cpls;
};