X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fdkdm_wrapper.h;h=d3ee2a09566c34afaa48036fa8bff507ed6ccf9b;hp=b877722d91732eb103a42bee80e86b81ca11e44b;hb=ba049fdab4a47023d6d5ee8b5ff9bbb710afbabb;hpb=aaf1d809a0ebbc2eb7dcd9ea7146cfe7bb4702f1 diff --git a/src/lib/dkdm_wrapper.h b/src/lib/dkdm_wrapper.h index b877722d9..d3ee2a095 100644 --- a/src/lib/dkdm_wrapper.h +++ b/src/lib/dkdm_wrapper.h @@ -20,18 +20,32 @@ #include #include +#include namespace xmlpp { class Element; } -class DKDMBase +class DKDMGroup; + +class DKDMBase : public boost::enable_shared_from_this { public: virtual std::string name () const = 0; virtual void as_xml (xmlpp::Element *) const = 0; static boost::shared_ptr read (cxml::ConstNodePtr node); + + boost::shared_ptr parent () const { + return _parent; + } + + void set_parent (boost::shared_ptr parent) { + _parent = parent; + } + +private: + boost::shared_ptr _parent; }; class DKDM : public DKDMBase