ImagingTools Core SDK
CCollectionDocumentManagerComp.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// ImtCore includes
6#include <imtdoc/CCollectionDocumentManagerBase.h>
7#include <imtdoc/CDocumentManagerCompBase.h>
8
9
10namespace imtdoc
11{
12
13
14class CCollectionDocumentManagerComp: public CDocumentManagerCompBase, public CCollectionDocumentManagerBase
15{
16public:
17 typedef CDocumentManagerCompBase BaseClass;
18 typedef CCollectionDocumentManagerBase BaseClass2;
19
20 I_BEGIN_COMPONENT(CCollectionDocumentManagerComp)
21 I_REGISTER_INTERFACE(imtdoc::IDocumentManager)
22 I_ASSIGN(m_collectionCompPtr, "Collection", "Document collection containing related documents", true, "Collection");
23 I_END_COMPONENT
24
25protected:
26 // reimplemented (imtdoc::CCollectionDocumentManagerBase)
27 virtual imtbase::IObjectCollection* GetCollection() const override;
28
29private:
30 I_REF(imtbase::IObjectCollection, m_collectionCompPtr);
31};
32
33
34} // namespace imtdoc