Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
ParameterFinder.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// File: ParameterFinder.h
3//-----------------------------------------------------------------------------
4// Project: Kactus2
5// Author: Mikko Teuho
6// Date: 15.01.2015
7//
8// Description:
9// The interface for finding parameters with the correct ID.
10//-----------------------------------------------------------------------------
11
12#ifndef PARAMETERFINDER_H
13#define PARAMETERFINDER_H
14
15#include <QSharedPointer>
16
17class QAbstractItemModel;
18class Parameter;
19
20//-----------------------------------------------------------------------------
22//-----------------------------------------------------------------------------
24{
25
26public:
27
31 virtual ~ParameterFinder() = default;
32
38 virtual QSharedPointer<Parameter> getParameterWithID(QStringView parameterId) const = 0;
39
47 virtual bool hasId(QStringView id) const = 0;
48
56 virtual QString nameForId(QStringView id) const = 0;
57
65 virtual QString valueForId(QStringView id) const = 0;
66
72 virtual QStringList getAllParameterIds() const = 0;
73
79 virtual int getNumberOfParameters() const = 0;
80
86 virtual void registerParameterModel(QAbstractItemModel const* model) = 0;
87
88};
89
90#endif // PARAMETERFINDER_H
Parameter finder.
virtual void registerParameterModel(QAbstractItemModel const *model)=0
virtual QString nameForId(QStringView id) const =0
virtual bool hasId(QStringView id) const =0
virtual ~ParameterFinder()=default
virtual QStringList getAllParameterIds() const =0
virtual QString valueForId(QStringView id) const =0
virtual QSharedPointer< Parameter > getParameterWithID(QStringView parameterId) const =0
virtual int getNumberOfParameters() const =0