From 0fa60920228c591f1183149d79c88302d3ce01fb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 26 Aug 2020 23:02:10 +0200 Subject: Add ContentVersion class. --- src/cpl.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src/cpl.h') diff --git a/src/cpl.h b/src/cpl.h index eebb3aaf..1132952a 100644 --- a/src/cpl.h +++ b/src/cpl.h @@ -104,14 +104,9 @@ public: _content_title_text = ct; } - /** @return contents of the <Id> node within <ContentVersion> */ - void set_content_version_id (std::string id) { - _content_version_id = id; - } - - /** @return contents of the <LabelText> node within <ContentVersion> */ - void set_content_version_label_text (std::string text) { - _content_version_label_text = text; + /** Set the contents of the ContentVersion tag */ + void set_content_version (ContentVersion v) { + _content_version = v; } /** @return the type of the content, used by media servers @@ -155,8 +150,8 @@ public: _ratings = r; } - std::string content_version_label_text () const { - return _content_version_label_text; + ContentVersion content_version () const { + return _content_version; } static std::string static_pkl_type (Standard standard); @@ -172,8 +167,7 @@ private: std::string _annotation_text; std::string _content_title_text; ///< <ContentTitleText> ContentKind _content_kind; ///< <ContentKind> - std::string _content_version_id; ///< <Id> in <ContentVersion> - std::string _content_version_label_text; ///< <LabelText> in <ContentVersion> + ContentVersion _content_version; ///< <ContentVersion> std::list > _reels; std::list _ratings; -- cgit v1.2.3