Mantid
Loading...
Searching...
No Matches
qt
widgets
common
inc
MantidQtWidgets
Common
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
9
#include "
IConfiguredAlgorithm.h
"
10
#include "
MantidAPI/IAlgorithmRuntimeProps.h
"
11
12
namespace
MantidQt::API
{
13
14
class
EXPORT_OPT_MANTIDQT_COMMON
ConfiguredAlgorithm
:
public
IConfiguredAlgorithm
{
15
public
:
16
ConfiguredAlgorithm
(
Mantid::API::IAlgorithm_sptr
algorithm,
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
25
protected:
26
Mantid
::
API
::IAlgorithm_sptr m_algorithm;
27
28
private:
29
std
::unique_ptr<
Mantid
::
API
::IAlgorithmRuntimeProps> m_properties;
30
bool
m_validatePropsPreExec;
31
};
32
}
// namespace MantidQt::API
EXPORT_OPT_MANTIDQT_COMMON
#define EXPORT_OPT_MANTIDQT_COMMON
Definition
DllOption.h:15
IAlgorithmRuntimeProps.h
IConfiguredAlgorithm.h
MantidQt::API::ConfiguredAlgorithm
Definition
ConfiguredAlgorithm.h:14
MantidQt::API::ConfiguredAlgorithm::~ConfiguredAlgorithm
~ConfiguredAlgorithm() override=default
MantidQt::API::IConfiguredAlgorithm
Definition
IConfiguredAlgorithm.h:16
Mantid::API::IAlgorithmRuntimeProps
Definition
IAlgorithmRuntimeProps.h:13
API
Definition
ChudleyElliotSQE.h:11
MantidQt::API
Definition
AlgorithmDialog.h:62
Mantid::API::IAlgorithm_sptr
std::shared_ptr< IAlgorithm > IAlgorithm_sptr
shared pointer to Mantid::API::IAlgorithm
Definition
IAlgorithm_fwd.h:20
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
std
STL namespace.
Generated by
1.9.8