diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-14 11:27:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-14 11:27:00 +0100 |
| commit | af87d03b24c21301639c23606993cfebcfbe3088 (patch) | |
| tree | e8106169d717030d96c444f3009687d3f7e2ba49 /src/pkl.h | |
| parent | 4cad94e5c679c290db71f739df513fbee5286b2a (diff) | |
Add GroupID support for PKLs (DoM #2943).v1.10.5
Diffstat (limited to 'src/pkl.h')
| -rw-r--r-- | src/pkl.h | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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; }; |
