ImagingTools Core SDK
CProductionRepresentationControllerComp.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 <imtloggui/CRepresentationControllerCompBase.h>
7
8
9namespace imtloggui
10{
11
12
13class CProductionRepresentationControllerComp: public CRepresentationControllerCompBase
14{
15public:
16 typedef CRepresentationControllerCompBase BaseClass;
17
18 I_BEGIN_COMPONENT(CProductionRepresentationControllerComp)
19 I_ASSIGN(m_granularityAttrPtr, "Granularity", "Statistics time granularity in seconds", true, 60);
20 I_END_COMPONENT
21
22 // reimplemented (icomp::CComponentBase)
23 virtual void OnComponentCreated() override;
24
25protected:
26 // reimplemented (CRepresentationControllerCompBase)
27 virtual void BuildRepresentation(
28 istd::IChangeable& representation,
29 imtlog::IEventProvider::EventContainerPtr containerPtr,
30 const imtbase::CTimeRange& timeRange) const override;
31
32private:
33 I_ATTR(int, m_granularityAttrPtr);
34};
35
36
37} // namespace imtloggui
38
39