Mantid
Loading...
Searching...
No Matches
SetDefaultWhenProperty.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 +
12
13#include <boost/python.hpp>
14// #include <boost/python/converter/registry.hpp>
15#include <functional>
16#include <string>
17#include <type_traits>
18
20
21using namespace Mantid::Kernel;
22using namespace boost::python;
23
25
27 Property *>(); // register converter
28
29 class_<SetDefaultWhenProperty, bases<IPropertySettings>>("SetDefaultWhenProperty", no_init) // no default constructor
30
31 .def(init<std::string, std::function<bool(const Mantid::Kernel::IPropertyManager *, Property *, Property *)>>(
32 (arg("self"), arg("watchedPropName"), arg("changeCriterion")),
33 "Update dynamic-default value of property when criterion is satisfied for watched property."));
34}
void export_SetDefaultWhenProperty()
Interface to PropertyManager.
Base class for properties.
Definition Property.h:94