summaryrefslogtreecommitdiff
path: root/src/cpl.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-28 00:05:46 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-21 21:57:18 +0200
commit0a8f009ceb86417704b2e2d2bb377c850d9e042e (patch)
tree212db1ed8d36395dcedafd075312fa721d0a012c /src/cpl.h
parenta0e7285ae99ca4630a8096884f05ad4e1b3fc204 (diff)
Use a vector<ContentVersion> instead of just one, to support the
new metadata.
Diffstat (limited to 'src/cpl.h')
-rw-r--r--src/cpl.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/cpl.h b/src/cpl.h
index b7055e5d..ba1e8196 100644
--- a/src/cpl.h
+++ b/src/cpl.h
@@ -50,6 +50,7 @@
#include <boost/optional.hpp>
#include <boost/shared_ptr.hpp>
#include <list>
+#include <vector>
namespace dcp {
@@ -138,15 +139,19 @@ public:
return _content_kind;
}
- ContentVersion content_version () const {
- return _content_version;
+ ContentVersion content_version () const;
+
+ std::vector<ContentVersion> content_versions () const {
+ return _content_versions;
}
- /** Set the contents of the ContentVersion tag */
void set_content_version (ContentVersion v) {
- _content_version = v;
+ _content_versions.clear ();
+ _content_versions.push_back (v);
}
+ void set_content_versions (std::vector<ContentVersion> v);
+
std::list<Rating> ratings () const {
return _ratings;
}
@@ -172,8 +177,8 @@ private:
std::string _annotation_text;
std::string _content_title_text; ///< &lt;ContentTitleText&gt;
ContentKind _content_kind; ///< &lt;ContentKind&gt;
- ContentVersion _content_version; ///< &lt;ContentVersion&gt;
std::list<Rating> _ratings;
+ std::vector<ContentVersion> _content_versions;
std::list<boost::shared_ptr<Reel> > _reels;