Mantid
Loading...
Searching...
No Matches
IAlgorithmRunnerSubscriber.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2024 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "DllOption.h"
13
14#include <string>
15
16namespace MantidQt::API {
17
19
20public:
21 virtual ~IAlgorithmRunnerSubscriber() = default;
22
23 virtual void notifyBatchComplete(IConfiguredAlgorithm_sptr &lastAlgorithm, bool error) {
24 (void)lastAlgorithm;
25 (void)error;
26 };
27 virtual void notifyBatchCancelled() {};
28 virtual void notifyAlgorithmStarted(IConfiguredAlgorithm_sptr &algorithm) { (void)algorithm; };
29 virtual void notifyAlgorithmComplete(IConfiguredAlgorithm_sptr &algorithm) { (void)algorithm; };
30 virtual void notifyAlgorithmError(IConfiguredAlgorithm_sptr &algorithm, std::string const &message) {
31 (void)algorithm;
32 (void)message;
33 };
34};
35
36} // namespace MantidQt::API
#define EXPORT_OPT_MANTIDQT_COMMON
Definition DllOption.h:15
double error
virtual void notifyAlgorithmComplete(IConfiguredAlgorithm_sptr &algorithm)
virtual void notifyAlgorithmStarted(IConfiguredAlgorithm_sptr &algorithm)
virtual void notifyAlgorithmError(IConfiguredAlgorithm_sptr &algorithm, std::string const &message)
virtual void notifyBatchComplete(IConfiguredAlgorithm_sptr &lastAlgorithm, bool error)
std::shared_ptr< IConfiguredAlgorithm > IConfiguredAlgorithm_sptr