Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
ComponentInstanceParameterFinder.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// File: ComponentInstanceParameterFinder.h
3//-----------------------------------------------------------------------------
4// Project: Kactus2
5// Author: Esko Pekkarinen
6// Date: 13.01.2017
7//
8// Description:
9// The implementation for finding parameters for component instance.
10//-----------------------------------------------------------------------------
11
12#ifndef COMPONENTINSTANCEPARAMETERFINDER_H
13#define COMPONENTINSTANCEPARAMETERFINDER_H
14
16
17#include <KactusAPI/KactusAPIGlobal.h>
18
19#include <QSharedPointer>
20
21class Component;
22class ComponentInstance;
23class Parameter;
24
25//-----------------------------------------------------------------------------
27//-----------------------------------------------------------------------------
29{
30 Q_OBJECT
31
32public:
33
40 ComponentInstanceParameterFinder(QSharedPointer<const ComponentInstance> componentInstance,
41 QSharedPointer<const Component> component);
42
47
51 ComponentInstanceParameterFinder& operator=(const ParameterCache& other) = delete;
52
60 QString valueForId(QStringView id) const final;
61
62private:
63
64 // The component instance whose parameters are being searched for.
65 QSharedPointer<const ComponentInstance> componentInstance_;
66};
67
68#endif // COMPONENTINSTANCEPARAMETERFINDER_H
QString valueForId(QStringView id) const final
~ComponentInstanceParameterFinder() final=default
ComponentInstanceParameterFinder(QSharedPointer< const ComponentInstance > componentInstance, QSharedPointer< const Component > component)
ParameterCache(QSharedPointer< const Component > component)