diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-15 23:51:08 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-16 01:11:04 +0200 |
| commit | 55c007ab910ee9586d6bd2faba165e42f6148622 (patch) | |
| tree | b411cfc71111eae285ff3b71d584a7e9c933471a /src/lib/dkdm_wrapper.h | |
| parent | 2b546a0c8edcd8b1f8917902461c7bbff61f7325 (diff) | |
C++11 tidying.
Diffstat (limited to 'src/lib/dkdm_wrapper.h')
| -rw-r--r-- | src/lib/dkdm_wrapper.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/dkdm_wrapper.h b/src/lib/dkdm_wrapper.h index 261cdc767..0c2992bc4 100644 --- a/src/lib/dkdm_wrapper.h +++ b/src/lib/dkdm_wrapper.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2017 Carl Hetherington <cth@carlh.net> + Copyright (C) 2017-2021 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -18,6 +18,7 @@ */ + #include <dcp/encrypted_kdm.h> #include <libcxml/cxml.h> #include <memory> @@ -27,8 +28,10 @@ namespace xmlpp { class Element; } + class DKDMGroup; + class DKDMBase : public std::enable_shared_from_this<DKDMBase> { public: @@ -50,6 +53,7 @@ private: std::shared_ptr<DKDMGroup> _parent; }; + class DKDM : public DKDMBase { public: @@ -68,6 +72,7 @@ private: dcp::EncryptedKDM _dkdm; }; + class DKDMGroup : public DKDMBase { public: @@ -81,14 +86,14 @@ public: void as_xml (xmlpp::Element *) const; - std::list<std::shared_ptr<DKDMBase> > children () const { + std::list<std::shared_ptr<DKDMBase>> children () const { return _children; } - void add (std::shared_ptr<DKDMBase> child, std::shared_ptr<DKDM> previous = std::shared_ptr<DKDM> ()); + void add (std::shared_ptr<DKDMBase> child, std::shared_ptr<DKDM> previous = std::shared_ptr<DKDM>()); void remove (std::shared_ptr<DKDMBase> child); private: std::string _name; - std::list<std::shared_ptr<DKDMBase> > _children; + std::list<std::shared_ptr<DKDMBase>> _children; }; |
