ImagingTools Core SDK
CGqlRepresentationJoinerComp.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 <imtservergql/CGqlRepresentationDataControllerCompBase.h>
7
8
9namespace imtservergql
10{
11
12
13class CGqlRepresentationJoinerComp: public CGqlRepresentationControllerCompBase
14{
15public:
16 typedef CGqlRepresentationControllerCompBase BaseClass;
17
18 I_BEGIN_COMPONENT(CGqlRepresentationJoinerComp);
19 I_ASSIGN_MULTI_0(m_representationControllersCompPtr, "RepresentsationControllers", "List of representation controllers", true);
20 I_END_COMPONENT;
21
22protected:
23 // reimplemented (imtservergql::CGqlRepresentationControllerCompBase)
24 virtual QJsonObject CreateRepresentationFromRequest(const imtgql::CGqlRequest& gqlRequest, QString& errorMessage) const override;
25 virtual bool UpdateModelFromRepresentation(const imtgql::CGqlRequest& request, const QJsonObject& representation) const override;
26
27protected:
28 I_MULTIREF(imtgql::IGqlRepresentationController, m_representationControllersCompPtr);
29};
30
31
32} // namespace imtservergql
33
34