Mantid
Loading...
Searching...
No Matches
Framework
PythonInterface
mantid
kernel
src
Exports
RebinParamsValidator.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 "
MantidKernel/RebinParamsValidator.h
"
8
#include <boost/python/class.hpp>
9
#include <boost/python/default_call_policies.hpp>
10
#include <boost/python/make_constructor.hpp>
11
12
using
Mantid::Kernel::IValidator
;
13
using
Mantid::Kernel::RebinParamsValidator
;
14
using namespace
boost::python
;
15
16
namespace
{
17
RebinParamsValidator
*createRebinParamsValidator(
bool
allowEmpty,
bool
allowRange) {
18
return
new
RebinParamsValidator
(allowEmpty, allowRange);
19
}
20
}
// namespace
21
22
void
export_RebinParamsValidator
() {
23
class_<RebinParamsValidator, bases<IValidator>, boost::noncopyable>(
"RebinParamsValidator"
)
24
.def(
"__init__"
,
25
make_constructor(&createRebinParamsValidator, default_call_policies(),
26
(arg(
"AllowEmpty"
) =
false
, arg(
"AllowRange"
) =
false
)),
27
"Constructs a validator verifying that the given float array is "
28
"valid sequence of rebinning parameters."
);
29
}
export_RebinParamsValidator
void export_RebinParamsValidator()
Definition
RebinParamsValidator.cpp:22
RebinParamsValidator.h
Mantid::Kernel::IValidator
IValidator is the basic interface for all validators for properties.
Definition
IValidator.h:43
Mantid::Kernel::RebinParamsValidator
Validator to check the format of a vector providing the rebin parameters to an algorithm.
Definition
RebinParamsValidator.h:19
boost::python
Definition
NDArray.h:50
Generated by
1.9.8