FOSSredder 0.5.0
Loading...
Searching...
No Matches
AnnualWorkflow.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <functional>
9#include <memory>
10
11#include <QObject>
12#include <QString>
13#include <QStringList>
14#include <QVariantMap>
15
17
18namespace ui::adapters {
19class AnnualAdapter;
20}
21
22namespace ui {
23
27class AnnualWorkflow : public QObject {
28 Q_OBJECT
29
30public:
33
43 explicit AnnualWorkflow(
44 StateSnapshotProvider stateSnapshotProvider,
45 std::shared_ptr<ui::adapters::AnnualAdapter> annualAdapter,
46 QObject* parent = nullptr);
47
58 QVariantMap computeAnnualPreview(const QString& annualId,
59 const QStringList& analysisIds,
60 int year) const;
61
62private:
69
70 StateSnapshotProvider stateSnapshotProvider_;
71 std::shared_ptr<ui::adapters::AnnualAdapter> annualAdapter_;
72};
73
74} // namespace ui
Immutable workspace read-model snapshot exposed through workspace ports.
AnnualWorkflow(StateSnapshotProvider stateSnapshotProvider, std::shared_ptr< ui::adapters::AnnualAdapter > annualAdapter, QObject *parent=nullptr)
Creates an annual workflow.
QVariantMap computeAnnualPreview(const QString &annualId, const QStringList &analysisIds, int year) const
Computes an annual preview through the core runner.
std::function< core::ports::workspace::WorkspaceSnapshot()> StateSnapshotProvider