summaryrefslogtreecommitdiff
path: root/src/cpl.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-02-05 11:01:05 +0000
committerCarl Hetherington <cth@carlh.net>2014-02-05 11:01:05 +0000
commit78c94420750c505e59d584c34b33acc953946c2a (patch)
treec58e818e8948d24d0f49dde46fe7bef3feea90ca /src/cpl.h
parent15137597824b263c875bd427f7d121eae28d45a6 (diff)
Small bits of tidying up and comments.
Diffstat (limited to 'src/cpl.h')
-rw-r--r--src/cpl.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/cpl.h b/src/cpl.h
index f695e4e2..d28737e1 100644
--- a/src/cpl.h
+++ b/src/cpl.h
@@ -50,10 +50,6 @@ public:
CPL (std::string annotation_text, ContentKind content_kind);
CPL (boost::filesystem::path file);
- std::string pkl_type () const {
- return "text/xml";
- }
-
bool equals (
CPL const & other,
EqualityOptions options,
@@ -62,19 +58,23 @@ public:
void add (boost::shared_ptr<Reel> reel);
void add (KDM const &);
-
+
+ /** @return contents of the <AnnotationText> node */
std::string annotation_text () const {
return _annotation_text;
}
+ /** @return contents of the <ContentTitleText> node */
std::string content_title_text () const {
return _content_title_text;
}
+ /** @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;
}
@@ -86,10 +86,14 @@ public:
return _content_kind;
}
+ /** @return the reels in this CPL */
std::list<boost::shared_ptr<Reel> > reels () const {
return _reels;
}
+ /** @return the Content in this CPL across all its reels
+ * (Content is picture, sound and subtitles)
+ */
std::list<boost::shared_ptr<const Content> > content () const;
bool encrypted () const;
@@ -104,7 +108,13 @@ public:
) const;
void resolve_refs (std::list<boost::shared_ptr<Object> >);
-
+
+protected:
+ /** @return type string for PKLs for this asset */
+ std::string pkl_type () const {
+ return "text/xml";
+ }
+
private:
std::string _annotation_text; ///< <AnnotationText>
std::string _issue_date; ///< <IssueDate>