Mantid
Loading...
Searching...
No Matches
MappingTypeHandler.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2016 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#pragma once
8
10
11namespace Mantid {
12namespace PythonInterface {
13namespace Registry {
14
20 void set(Kernel::IPropertyManager *alg, const std::string &name,
21 const boost::python::api::object &mapping) const override;
22 std::unique_ptr<Kernel::Property> create(const std::string &name, const boost::python::api::object &defaultValue,
23 const boost::python::api::object &validator,
24 const unsigned int direction) const override;
25};
26} // namespace Registry
27} // namespace PythonInterface
28} // namespace Mantid
Interface to PropertyManager.
Defines a handler class for converting a Python mapping type object to a C++ PropertyManager type.
void set(Kernel::IPropertyManager *alg, const std::string &name, const boost::python::api::object &mapping) const override
Sets the named property in the PropertyManager by extracting a new PropertyManager from the Python ob...
std::unique_ptr< Kernel::Property > create(const std::string &name, const boost::python::api::object &defaultValue, const boost::python::api::object &validator, const unsigned int direction) const override
Always throws a runtime_error.
Helper class which provides the Collimation Length for SANS instruments.
This class provides a base-class objects that are able to take a python object and set it on an algor...