Mantid
Loading...
Searching...
No Matches
PropertyValueHandler.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#include <boost/python/object.hpp>
11#include <memory>
12#include <string>
13
14namespace Mantid {
15namespace Kernel {
16// Forward declarations
17class DataItem;
18class IPropertyManager;
19class Property;
20} // namespace Kernel
21namespace PythonInterface {
22namespace Registry {
32 virtual ~PropertyValueHandler() = default;
34 virtual void set(Kernel::IPropertyManager *alg, const std::string &name,
35 const boost::python::object &value) const = 0;
37 virtual std::unique_ptr<Kernel::Property> create(const std::string &name, const boost::python::object &value,
38 const boost::python::object &validator,
39 const unsigned int direction) const = 0;
40};
41} // namespace Registry
42} // namespace PythonInterface
43} // 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.
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...
virtual void set(Kernel::IPropertyManager *alg, const std::string &name, const boost::python::object &value) const =0
Overload to set the named property's value on the property manager.
virtual ~PropertyValueHandler()=default
Virtual Destructor.
virtual std::unique_ptr< Kernel::Property > create(const std::string &name, const boost::python::object &value, const boost::python::object &validator, const unsigned int direction) const =0
Overload to create a Property type from the given value with no validation.