Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
ParameterConfigurableElementFinder.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// File: ParameterConfigurableElementFinder.h
3//-----------------------------------------------------------------------------
4// Project: Kactus2
5// Author: Mikko Teuho
6// Date: 18.02.2026
7//
8// Description:
9// The implementation for finding configurable elements from a list with the correct ID.
10//-----------------------------------------------------------------------------
11
12#ifndef PARAMETERCONFIGURABLEELEMENTFINDER_H
13#define PARAMETERCONFIGURABLEELEMENTFINDER_H
14
15#include "ListParameterFinder.h"
16
17#include "KactusAPI/KactusAPIGlobal.h"
18
19#include <QSharedPointer>
20#include <QList>
21
22class ConfigurableElementValue;
23
24//-----------------------------------------------------------------------------
26//-----------------------------------------------------------------------------
28{
29
30public:
31
36
41
45
53 QString valueForId(QStringView id) const override;
54
60 void setCEVList(QSharedPointer<QList<QSharedPointer<ConfigurableElementValue> > > elementList) noexcept;
61
62private:
63
64 //-----------------------------------------------------------------------------
65 // Data.
66 //-----------------------------------------------------------------------------
67
69 QSharedPointer<QList<QSharedPointer<ConfigurableElementValue> > > cevList_ =
70 QSharedPointer<QList<QSharedPointer<ConfigurableElementValue> > >(new QList<QSharedPointer<ConfigurableElementValue> >());
71};
72
73#endif // PARAMETERCONFIGURABLEELEMENTFINDER_H
~ParameterConfigurableElementFinder() override=default
void setCEVList(QSharedPointer< QList< QSharedPointer< ConfigurableElementValue > > > elementList) noexcept
QString valueForId(QStringView id) const override
ParameterConfigurableElementFinder & operator=(const ParameterConfigurableElementFinder &other)=delete
ParameterConfigurableElementFinder(const ParameterConfigurableElementFinder &other)=delete
No copying. No assignment. No regret.