ImagingTools Core SDK
CSchedulerParamsRepresentationControllerComp.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 <imtserverapp/TJsonRepresentationControllerCompWrap.h>
7#include <GeneratedFiles/imtbasesdl/SDL/1.0/CPP/Settings.h>
8
9
10namespace imtserverapp
11{
12
13
14class CSchedulerParamsRepresentationControllerComp: public TJsonRepresentationControllerCompWrap<sdl::imtbase::ImtBaseTypes::CSchedulerParam::V1_0>
15{
16public:
17 typedef TJsonRepresentationControllerCompWrap<sdl::imtbase::ImtBaseTypes::CSchedulerParam::V1_0> BaseClass;
18
19 I_BEGIN_COMPONENT(CSchedulerParamsRepresentationControllerComp)
20 I_ASSIGN(m_dateFormatAttrPtr, "DateFormat", "Date format", false, "dd-MM-yyyy HH:mm");
21 I_END_COMPONENT;
22
23protected:
24 // reimplemented (TJsonRepresentationControllerCompWrap<sdl::imtbase::ImtBaseTypes::CSchedulerParam::V1_0>)
25 virtual QByteArray GetTypeId() const override;
26 virtual bool IsModelSupported(const istd::IChangeable &dataModel) const override;
27 virtual bool GetSdlRepresentationFromDataModel(
28 sdl::imtbase::ImtBaseTypes::CSchedulerParam::V1_0& sdlRepresentation,
29 const istd::IChangeable& dataModel,
30 const iprm::IParamsSet* paramsPtr = nullptr) const override;
31 virtual bool GetDataModelFromSdlRepresentation(
32 istd::IChangeable& dataModel,
33 const sdl::imtbase::ImtBaseTypes::CSchedulerParam::V1_0& sdlRepresentation) const override;
34private:
35 I_ATTR(QString, m_dateFormatAttrPtr);
36};
37
38
39} // namespace imtserverapp
40
41