Base: cleanup includes in *PyImp.cpp

Sort includes and implicitely add missing ones. While there
consistently explain where generated files some from.
This commit is contained in:
Ladislav Michl
2025-04-26 16:06:24 +02:00
committed by Benjamin Nauck
parent e18c88bd23
commit 3769dfd338
13 changed files with 47 additions and 47 deletions

View File

@@ -24,12 +24,12 @@
#include "GeometryPyCXX.h"
// inclusion of the generated files (generated out of AxisPy.pyi)
// generated out of Axis.pyi
#include "AxisPy.h"
#include "AxisPy.cpp"
#include "VectorPy.h"
#include "PlacementPy.h"
#include "VectorPy.h"
using namespace Base;

View File

@@ -20,10 +20,11 @@
* *
***************************************************************************/
#include "PreCompiled.h"
// inclusion of the generated files (generated out of BaseClassPy.pyi)
#include "Type.h"
// generated out of BaseClass.pyi
#include "BaseClassPy.h"
#include "BaseClassPy.cpp"
@@ -35,7 +36,6 @@ std::string BaseClassPy::representation() const
return {"<binding object>"};
}
PyObject* BaseClassPy::isDerivedFrom(PyObject* args) const
{
char* name {};

View File

@@ -20,16 +20,17 @@
* *
***************************************************************************/
#include "PreCompiled.h"
// inclusion of the generated files (generated out of BoundBoxPy.pyi)
#include "MatrixPy.h"
#include "VectorPy.h"
#include "GeometryPyCXX.h"
// generated out of BoundBox.pyi
#include "BoundBoxPy.h"
#include "BoundBoxPy.cpp"
#include "MatrixPy.h"
#include "VectorPy.h"
using namespace Base;
// returns a string which represent the object e.g. when printed in python

View File

@@ -22,14 +22,16 @@
#include "PreCompiled.h"
#include "AxisPy.h"
#include "GeometryPyCXX.h"
// generated out of CoordinateSystem.pyi
#include "CoordinateSystemPy.h"
#include "CoordinateSystemPy.cpp"
#include "GeometryPyCXX.h"
#include "AxisPy.h"
#include "PlacementPy.h"
#include "VectorPy.h"
using namespace Base;
// returns a string which represents the object e.g. when printed in python

View File

@@ -20,21 +20,20 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <limits>
#endif
// inclusion of the generated files (generated out of MatrixPy.pyi)
#include "RotationPy.h"
#include "VectorPy.h"
#include "GeometryPyCXX.h"
#include "QuantityPy.h"
// generated out of Matrix.pyi
#include "MatrixPy.h"
#include "MatrixPy.cpp"
#include "RotationPy.h"
#include "QuantityPy.h"
#include "VectorPy.h"
using namespace Base;

View File

@@ -20,16 +20,15 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include <boost/iostreams/stream.hpp>
#include "Persistence.h"
#include "PyWrapParseTupleAndKeywords.h"
#include "Writer.h"
#include <Base/PyWrapParseTupleAndKeywords.h>
// inclusion of the generated files (generated out of PersistencePy.pyi)
// generated out of Persistence.pyi
#include "PersistencePy.h"
#include "PersistencePy.cpp"

View File

@@ -20,20 +20,20 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include "GeometryPyCXX.h"
#include <Base/PyWrapParseTupleAndKeywords.h>
#include "Matrix.h"
#include "PyWrapParseTupleAndKeywords.h"
#include "Tools.h"
// inclusion of the generated files (generated out of PlacementPy.pyi)
// generated out of Placement.pyi
#include "PlacementPy.h"
#include "PlacementPy.cpp"
#include "Matrix.h"
#include "MatrixPy.h"
#include "RotationPy.h"
#include "VectorPy.h"
#include "Tools.h"
using namespace Base;

View File

@@ -22,14 +22,13 @@
#include "PreCompiled.h"
// generated out of Precision.pyi
#include "PrecisionPy.h"
#include "PrecisionPy.cpp"
using Base::Precision;
using Base::PrecisionPy;
// returns a string which represents the object e.g. when printed in python
std::string PrecisionPy::representation() const
{

View File

@@ -21,16 +21,17 @@
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <limits>
#endif
// inclusion of the generated files (generated out of QuantityPy.pyi)
#include "Unit.h"
// generated out of Quantity.pyi
#include "QuantityPy.h"
#include "UnitPy.h"
#include "QuantityPy.cpp"
#include "UnitPy.h"
using namespace Base;

View File

@@ -20,18 +20,17 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include <Base/GeometryPyCXX.h>
#include <Base/Tools.h>
#include <Base/PyWrapParseTupleAndKeywords.h>
#include "GeometryPyCXX.h"
#include "PyWrapParseTupleAndKeywords.h"
#include "Tools.h"
// inclusion of the generated files (generated out of RotationPy.pyi)
// generated out of Rotation.pyi
#include "RotationPy.h"
#include "RotationPy.cpp"
#include "VectorPy.h"
#include "VectorPy.h"
using namespace Base;

View File

@@ -20,11 +20,12 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#include "Type.h"
#include "BindingManager.h"
// generated out of Type.pyi
#include "TypePy.h"
#include "TypePy.cpp"

View File

@@ -22,12 +22,13 @@
#include "PreCompiled.h"
#include <Base/Unit.h>
#include "Unit.h"
// inclusion of the generated files (generated out of UnitPy.pyi)
#include <Base/UnitPy.h>
#include <Base/QuantityPy.h>
#include <Base/UnitPy.cpp>
// generated out of Unit.pyi
#include "UnitPy.h"
#include "UnitPy.cpp"
#include "QuantityPy.h"
using namespace Base;

View File

@@ -20,17 +20,15 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#include <sstream>
#endif
#include "GeometryPyCXX.h"
#include "Vector3D.h"
// inclusion of the generated files (generated out of VectorPy.pyi)
#include "GeometryPyCXX.h"
// generated out of Vector.pyi
#include "VectorPy.h"
#include "VectorPy.cpp"