Mantid
Loading...
Searching...
No Matches
SequenceTypeHandler.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 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
9#include "MantidPythonInterface/kernel/DllConfig.h"
11
12namespace Mantid {
13namespace PythonInterface {
14namespace Registry {
20template <typename ContainerType>
21struct PYTHON_KERNEL_DLL SequenceTypeHandler : TypedPropertyValueHandler<ContainerType> {
22
24 void set(Kernel::IPropertyManager *alg, const std::string &name, const boost::python::object &value) const override;
25
27 std::unique_ptr<Kernel::Property> create(const std::string &name, const boost::python::object &defaultValue,
28 const boost::python::object &validator,
29 const unsigned int direction) const override;
30};
31} // namespace Registry
32} // namespace PythonInterface
33} // namespace Mantid
std::string name
Definition Run.cpp:60
double value
The value of the point.
Definition FitMW.cpp:51
Interface to PropertyManager.
std::unique_ptr< T > create(const P &parent, const IndexArg &indexArg, const HistArg &histArg)
This is the create() method that all the other create() methods call.
Helper class which provides the Collimation Length for SANS instruments.
A specialisation of PropertyValueHander to handle coercing a Python value into a C++ sequence/array p...
This class provides a templated class object that is able to take a python object and perform operati...