Mantid
Loading...
Searching...
No Matches
ConfiguredAlgorithm.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2021 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
11
12namespace MantidQt::API {
13
15public:
17 std::unique_ptr<Mantid::API::IAlgorithmRuntimeProps> properties,
18 bool const validatePropsPreExec = true);
19 ~ConfiguredAlgorithm() override = default;
20
21 Mantid::API::IAlgorithm_sptr algorithm() const override;
22 const Mantid::API::IAlgorithmRuntimeProps &getAlgorithmRuntimeProps() const noexcept override;
23 bool validatePropsPreExec() const noexcept override;
24
25protected:
26 Mantid::API::IAlgorithm_sptr m_algorithm;
27
28private:
29 std::unique_ptr<Mantid::API::IAlgorithmRuntimeProps> m_properties;
30 bool m_validatePropsPreExec;
31};
32} // namespace MantidQt::API
#define EXPORT_OPT_MANTIDQT_COMMON
Definition DllOption.h:15
~ConfiguredAlgorithm() override=default
std::shared_ptr< IAlgorithm > IAlgorithm_sptr
shared pointer to Mantid::API::IAlgorithm
Helper class which provides the Collimation Length for SANS instruments.
STL namespace.