Mantid
Loading...
Searching...
No Matches
SetValueWhenProperty.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.hpp>
10#include <functional>
11#include <string>
12
14
15using namespace Mantid::Kernel;
16using namespace boost::python;
17
19
21
22 class_<SetValueWhenProperty, bases<IPropertySettings>>("SetValueWhenProperty", no_init) // no default constructor
23
24 .def(init<std::string, std::function<std::string(std::string, std::string)>>(
25 (arg("self"), arg("watchedPropName"), arg("changeCriterion")),
26 "Set value of property when watched-property value criterion is satisfied"));
27}
void export_SetValueWhenProperty()