Mantid
Loading...
Searching...
No Matches
Framework
PythonInterface
mantid
api
src
Exports
Progress.cpp
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2018 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
#include "
MantidAPI/Progress.h
"
8
#include "
MantidAPI/Algorithm.h
"
9
10
#include <boost/python/class.hpp>
11
#include <boost/python/init.hpp>
12
13
using
Mantid::API::Algorithm
;
14
using
Mantid::API::Progress
;
15
using
Mantid::Kernel::ProgressBase
;
16
using namespace
boost::python
;
17
18
void
export_Progress
() {
19
class_<Progress, bases<ProgressBase>, boost::noncopyable>(
20
"Progress"
,
21
"Make a Progress object that is attached to the given algorithm, "
22
"with progress between fractions [start,end] notifying a total of "
23
"nreports times"
,
24
init<Algorithm *, double, double, size_t>((arg(
"alg"
), arg(
"start"
), arg(
"end"
), arg(
"nreports"
))));
25
}
Algorithm.h
Progress.h
export_Progress
void export_Progress()
Definition:
Progress.cpp:18
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::Kernel::ProgressBase
ProgressBase.
Definition:
ProgressBase.h:30
boost::python
Definition:
NDArray.h:50
Generated on Tue Jan 3 2023 11:57:23 for Mantid by
1.9.5