diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-28 00:05:46 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-09-21 21:57:18 +0200 |
| commit | 0a8f009ceb86417704b2e2d2bb377c850d9e042e (patch) | |
| tree | 212db1ed8d36395dcedafd075312fa721d0a012c /src/cpl.h | |
| parent | a0e7285ae99ca4630a8096884f05ad4e1b3fc204 (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.h | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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; ///< <ContentTitleText> ContentKind _content_kind; ///< <ContentKind> - ContentVersion _content_version; ///< <ContentVersion> std::list<Rating> _ratings; + std::vector<ContentVersion> _content_versions; std::list<boost::shared_ptr<Reel> > _reels; |
