summaryrefslogtreecommitdiff
path: root/src/cpl.h
diff options
context:
space:
mode:
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;