ImagingTools Core SDK
CProductInstanceInfoComp.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// ACF includes
6#include <icomp/CComponentBase.h>
7
8// ImtCore includes
9#include <imtlic/CProductInstanceInfo.h>
10
11
12namespace imtlic
13{
14
15
21 public icomp::CComponentBase,
23{
24public:
25 typedef icomp::CComponentBase BaseClass;
27
28 I_BEGIN_COMPONENT(CProductInstanceInfoComp)
29 I_REGISTER_INTERFACE(imtlic::IProductInstanceInfo);
30 I_REGISTER_INTERFACE(imtlic::ILicenseInstanceProvider);
31 I_REGISTER_INTERFACE(iser::IObject);
32 I_REGISTER_INTERFACE(iser::ISerializable);
33 I_REGISTER_INTERFACE(istd::IChangeable);
34 I_ASSIGN(m_productCollectionCompPtr, "ProductCollection", "Product database", false, "ProductCollection");
35 I_ASSIGN(m_customerCollectionCompPtr, "CustomerCollection", "Customer database", false, "CustomerCollection");
36 I_END_COMPONENT
37
38protected:
39 // reimplemented (icomp::CComponentBase)
40 virtual void OnComponentCreated() override;
41
42protected:
43 I_REF(imtbase::IObjectCollection, m_productCollectionCompPtr);
44 I_REF(imtbase::IObjectCollection, m_customerCollectionCompPtr);
45};
46
47
48} // namespace imtlic
49
50
Core licensing domain model providing feature-based product licensing and instance management.