Mantid
Loading...
Searching...
No Matches
ArrayOrderedPairsValidator.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 +
8#include <boost/python/class.hpp>
9#include <boost/python/make_constructor.hpp>
10#include <boost/python/return_value_policy.hpp>
11
14using namespace boost::python;
15
16namespace {
17template <typename TYPE> ArrayOrderedPairsValidator<TYPE> *createArrayOrderedPairsValidator() {
19}
20
21#define EXPORT_PAIRSVALIDATOR(type, prefix) \
22 class_<ArrayOrderedPairsValidator<type>, bases<IValidator>, boost::noncopyable>(#prefix \
23 "ArrayOrderedPairsValidator") \
24 .def("__init__", make_constructor(&createArrayOrderedPairsValidator<type>, default_call_policies()));
25} // namespace
27 EXPORT_PAIRSVALIDATOR(double, Float);
28 EXPORT_PAIRSVALIDATOR(long, Int);
29}
void export_ArrayOrderedPairsValidator()
#define EXPORT_PAIRSVALIDATOR(type, prefix)
IValidator is the basic interface for all validators for properties.
Definition: IValidator.h:43