summaryrefslogtreecommitdiff
path: root/src/pkl.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-01-14 11:27:00 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-14 11:27:00 +0100
commitaf87d03b24c21301639c23606993cfebcfbe3088 (patch)
treee8106169d717030d96c444f3009687d3f7e2ba49 /src/pkl.h
parent4cad94e5c679c290db71f739df513fbee5286b2a (diff)
Add GroupID support for PKLs (DoM #2943).v1.10.5
Diffstat (limited to 'src/pkl.h')
-rw-r--r--src/pkl.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/pkl.h b/src/pkl.h
index b72fa2f8..eb6ca51e 100644
--- a/src/pkl.h
+++ b/src/pkl.h
@@ -58,8 +58,16 @@ class VerificationNote;
class PKL : public Object, public AssetList
{
public:
- PKL (Standard standard, boost::optional<std::string> annotation_text, std::string issue_date, std::string issuer, std::string creator)
+ PKL(
+ Standard standard,
+ boost::optional<std::string> annotation_text,
+ std::string issue_date,
+ std::string issuer,
+ std::string creator,
+ boost::optional<std::string> group_id = boost::none
+ )
: AssetList(standard, annotation_text, issue_date, issuer, creator)
+ , _group_id(group_id)
{}
explicit PKL(boost::filesystem::path file, std::vector<dcp::VerificationNote>* notes = nullptr);
@@ -129,8 +137,13 @@ public:
return _assets;
}
+ boost::optional<std::string> group_id() const {
+ return _group_id;
+ }
+
private:
std::vector<std::shared_ptr<Asset>> _assets;
+ boost::optional<std::string> _group_id;
/** The most recent disk file used to read or write this PKL */
mutable boost::optional<boost::filesystem::path> _file;
};