Mantid
Loading...
Searching...
No Matches
PropertyHistory.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 +
9
10#include <boost/python/class.hpp>
11#include <boost/python/operators.hpp>
12#include <boost/python/register_ptr_to_python.hpp>
13#include <boost/python/self.hpp>
14
17using namespace boost::python;
18
20 register_ptr_to_python<PropertyHistory *>();
21
22 class_<PropertyHistory, boost::noncopyable>("PropertyHistory", no_init)
23 .def("name", &PropertyHistory::name, "Returns the name of the property.")
24 .def("value", &PropertyHistory::value, "Returns the value of the property.")
25 .def("type", &PropertyHistory::type, "Returns the type of the property.")
26 .def("isDefault", &PropertyHistory::isDefault, "Returns if the property value is the default value.")
27 .def("direction", &PropertyHistory::direction, "Returns the direction of the property.")
28 // ----------------- Operators --------------------------------------
29 .def(self_ns::str(self));
30}
void export_PropertyHistory()
IAlgorithm is the interface implemented by the Algorithm base class.
Definition: IAlgorithm.h:45
This class stores information about the parameters used by an algorithm.
unsigned int direction() const
get direction flag of algorithm parameter const
const std::string & name() const
get name of algorithm parameter const
const std::string & value() const
get value of algorithm parameter const
bool isDefault() const
get isdefault flag of algorithm parameter const
const std::string & type() const
get type of algorithm parameter const