diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-18 15:13:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-18 15:13:22 +0100 |
| commit | 6bfcb3374d8ad43f08c3923b484b92ad60691b79 (patch) | |
| tree | c9f5f75ac84650d6982a74cfb1ba817c42293501 /src/lib/dkdm_wrapper.h | |
| parent | bad7a5abcfb51230359759fd44883c80104e566a (diff) | |
Add all_dkdms() method.
Diffstat (limited to 'src/lib/dkdm_wrapper.h')
| -rw-r--r-- | src/lib/dkdm_wrapper.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/dkdm_wrapper.h b/src/lib/dkdm_wrapper.h index 7182e5e85..0bbd46407 100644 --- a/src/lib/dkdm_wrapper.h +++ b/src/lib/dkdm_wrapper.h @@ -40,6 +40,7 @@ public: virtual void as_xml (xmlpp::Element *) const = 0; /** @return true if this thing is, or contains, any actual DKDM */ virtual bool contains_dkdm() const = 0; + virtual std::vector<dcp::EncryptedKDM> all_dkdms() const = 0; static std::shared_ptr<DKDMBase> read (cxml::ConstNodePtr node); @@ -68,6 +69,9 @@ public: bool contains_dkdm() const override { return true; } + std::vector<dcp::EncryptedKDM> all_dkdms() const override { + return { _dkdm }; + } dcp::EncryptedKDM dkdm () const { return _dkdm; @@ -93,6 +97,8 @@ public: bool contains_dkdm() const override; + std::vector<dcp::EncryptedKDM> all_dkdms() const override; + std::list<std::shared_ptr<DKDMBase>> children () const { return _children; } |
