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<MantidQt::API::IAlgorithmRuntimeProps> properties);
18 virtual ~ConfiguredAlgorithm() = default;
19
20 Mantid::API::IAlgorithm_sptr algorithm() const override;
21 const MantidQt::API::IAlgorithmRuntimeProps &getAlgorithmRuntimeProps() const noexcept override;
22
23protected:
24 Mantid::API::IAlgorithm_sptr m_algorithm;
25
26private:
27 std::unique_ptr<IAlgorithmRuntimeProps> m_properties;
28};
29} // namespace MantidQt::API
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
virtual ~ConfiguredAlgorithm()=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.