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
10
11namespace Mantid {
12namespace PythonInterface {
13namespace Registry {
19template <typename ContainerType> struct DLLExport SequenceTypeHandler : TypedPropertyValueHandler<ContainerType> {
20
22 void set(Kernel::IPropertyManager *alg, const std::string &name, const boost::python::object &value) const override;
23
25 std::unique_ptr<Kernel::Property> create(const std::string &name, const boost::python::object &defaultValue,
26 const boost::python::object &validator,
27 const unsigned int direction) const override;
28};
29} // namespace Registry
30} // namespace PythonInterface
31} // namespace Mantid
double value
The value of the point.
Definition: FitMW.cpp:51
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition: System.h:53
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...