Mantid
Loading...
Searching...
No Matches
Framework
API
inc
MantidAPI
Progress.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2009 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
//----------------------------------------------------------------------
10
// Includes
11
//----------------------------------------------------------------------
12
#include "MantidAPI/DllConfig.h"
13
#include "
MantidKernel/ProgressBase.h
"
14
15
namespace
Mantid
{
16
namespace
API
{
17
class
Algorithm
;
18
25
class
MANTID_API_DLL
Progress
final :
public
Mantid::Kernel::ProgressBase
{
26
public
:
27
Progress
();
28
Progress
(
Algorithm
*alg,
double
start,
double
end,
int
numSteps);
29
Progress
(
Algorithm
*alg,
double
start,
double
end, int64_t numSteps);
30
Progress
(
Algorithm
*alg,
double
start,
double
end,
size_t
numSteps);
31
void
doReport(
const
std::string &msg =
""
)
override
;
32
bool
hasCancellationBeenRequested()
const override
;
33
34
private
:
36
Algorithm
*
const
m_alg
;
37
};
38
39
}
// namespace API
40
}
// namespace Mantid
ProgressBase.h
Mantid::API::Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition:
Algorithm.h:85
Mantid::API::Progress
Helper class for reporting progress from algorithms.
Definition:
Progress.h:25
Mantid::API::Progress::m_alg
Algorithm *const m_alg
Owning algorithm.
Definition:
Progress.h:36
Mantid::Kernel::ProgressBase
ProgressBase.
Definition:
ProgressBase.h:30
API
Definition:
ChudleyElliotSQE.h:16
Mantid::Kernel::FeatureType::Algorithm
@ Algorithm
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition:
AbsorptionCorrection.h:18
Generated on Tue Jan 3 2023 11:57:22 for Mantid by
1.9.5