Mantid
Loading...
Searching...
No Matches
AlgorithmFactoryObserverAdapter.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2019 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 +
10
12
15
17 try {
18 return callMethod<void>(getSelf(), "updateHandle");
19 } catch (UndefinedAttributeError &) {
20 return;
21 }
22}
23
24} // namespace Mantid::PythonInterface
std::unique_ptr< ConceptT > m_self
PyObject * getSelf() const
Return the PyObject that owns this wrapper, i.e. self.
void updateHandle() override
If something subscribes to the AlgorithmFactory, then this function will trigger.
Defines an exception for an undefined attribute.
Definition: CallMethod.h:20