Base: implement a lightweight smart pointer for PyObject like Py::Object to reduce includes of Python.h in header files

This commit is contained in:
wmayer
2022-03-04 15:51:51 +01:00
parent 8020c1f975
commit 032cea587d
10 changed files with 219 additions and 5 deletions

View File

@@ -24,6 +24,7 @@
#define MEASURE_MEASUREMENT_H
#include <Base/BaseClass.h>
#include <Base/SmartPtrPy.h>
#include <Base/Vector3D.h>
#include <App/DocumentObject.h>
@@ -84,7 +85,7 @@ public:
protected:
TopoDS_Shape getShape(App::DocumentObject *obj , const char *subName) const;
MeasureType measureType;
Py::Object PythonObject;
Py::SmartPtr PythonObject;
};