Mantid
Loading...
Searching...
No Matches
Framework
PythonInterface
mantid
api
src
Exports
OrientedLatticeValidator.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/OrientedLatticeValidator.h
"
8
#include "
MantidPythonInterface/core/TypedValidatorExporter.h
"
9
#include <boost/python/class.hpp>
10
11
using namespace
Mantid::API
;
12
using
Mantid::PythonInterface::TypedValidatorExporter
;
13
using namespace
boost::python
;
14
15
// This is typed on the ExperimentInfo class
16
void
export_OrientedLatticeValidator
() {
17
TypedValidatorExporter<ExperimentInfo_sptr>::define
(
"OrientedLatticeValidator"
);
18
19
class_<OrientedLatticeValidator, bases<Mantid::Kernel::TypedValidator<ExperimentInfo_sptr>>, boost::noncopyable>(
20
"OrientedLatticeValidator"
, init<>(
"Checks that the workspace has an orientation matrix defined"
));
21
}
OrientedLatticeValidator.h
export_OrientedLatticeValidator
void export_OrientedLatticeValidator()
Definition:
OrientedLatticeValidator.cpp:16
TypedValidatorExporter.h
Mantid::API
Definition:
AbsorptionCorrection.h:20
boost::python
Definition:
NDArray.h:50
Mantid::PythonInterface::TypedValidatorExporter
Declares a simple static struct to export a TypedValidator to Python.
Definition:
TypedValidatorExporter.h:18
Mantid::PythonInterface::TypedValidatorExporter::define
static void define(const char *pythonClassName)
Definition:
TypedValidatorExporter.h:19
Generated on Tue Jan 3 2023 11:57:23 for Mantid by
1.9.5