Mantid
Loading...
Searching...
No Matches
AlgorithmFactoryObserverAdapter.h
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 +
7#pragma once
8
10#include <boost/python/wrapper.hpp>
11
12namespace Mantid {
13namespace PythonInterface {
14
23public:
24 explicit AlgorithmFactoryObserverAdapter(PyObject *self);
27
28 void updateHandle() override;
29
30private:
32 inline PyObject *getSelf() const { return m_self; }
34 PyObject *m_self;
35};
36
37} // namespace PythonInterface
38} // namespace Mantid
std::unique_ptr< ConceptT > m_self
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition: System.h:53
A wrapper class helping to export AnalysisDataServiceObserver to python.
PyObject * m_self
Value of "self" used by python to refer to an instance of this class.
PyObject * getSelf() const
Return the PyObject that owns this wrapper, i.e. self.
AlgorithmFactoryObserverAdapter & operator=(const AlgorithmFactoryObserverAdapter &)=delete
AlgorithmFactoryObserverAdapter(const AlgorithmFactoryObserverAdapter &)=delete
Helper class which provides the Collimation Length for SANS instruments.