Mantid
Loading...
Searching...
No Matches
InstrumentValidator.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 +
9#include <boost/python/class.hpp>
10
11using namespace Mantid::API;
13using namespace boost::python;
14
15// This is typed on the ExperimentInfo class
18
19 class_<InstrumentValidator, bases<Mantid::Kernel::TypedValidator<ExperimentInfo_sptr>>, boost::noncopyable>(
20 "InstrumentValidator", init<>("Checks that the workspace has an instrument defined"));
21}
void export_InstrumentValidator()
Declares a simple static struct to export a TypedValidator to Python.
static void define(const char *pythonClassName)