ImagingTools Core SDK
CQtResourceLoaderComp.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 <ilog/TLoggerCompWrap.h>
7
8
9namespace imtbase
10{
11
12
13class CQtResourceLoaderComp: public ilog::CLoggerComponentBase
14{
15public:
16 typedef icomp::CComponentBase BaseClass;
17
18 I_BEGIN_COMPONENT(CQtResourceLoaderComp);
19 I_ASSIGN(m_qrcPathAttrPtr, "PathToFile", "Path to file for load", true, "PathToFile");
20 I_ASSIGN(m_targetObjectCompPtr, "TargetCollection", "Collection for serialize readed data", true, "TargetCollection");
21 I_END_COMPONENT;
22
23protected:
24 // reimplemented (icomp::CComponentBase)
25 virtual void OnComponentCreated() override;
26
27private:
28 I_ATTR(QByteArray, m_qrcPathAttrPtr);
29 I_REF(iser::ISerializable, m_targetObjectCompPtr);
30};
31
32
33} // namespace imtbase
34
35