Base: use forward declaration instead of including Python.h
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
#include "Vector3D.h"
|
||||
#ifndef FC_GLOBAL_H
|
||||
#include <FCGlobal.h>
|
||||
#endif
|
||||
@@ -36,6 +35,9 @@
|
||||
namespace Base
|
||||
{
|
||||
class Matrix4D;
|
||||
template <class _Precision> class Vector3;
|
||||
typedef Vector3<float> Vector3f;
|
||||
|
||||
/** A Builder class for 3D representations on App level
|
||||
* On the application level nothing is known of the visual representation of data.
|
||||
* Nevertheless it's often needed to see some 3D information, e.g. points, directions,
|
||||
|
||||
@@ -24,10 +24,12 @@
|
||||
#ifndef BASE_EXCEPTIONFACTORY_H
|
||||
#define BASE_EXCEPTIONFACTORY_H
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
#include "Factory.h"
|
||||
#include <typeinfo>
|
||||
|
||||
// Python stuff
|
||||
typedef struct _object PyObject;
|
||||
|
||||
namespace Base
|
||||
{
|
||||
@@ -36,8 +38,7 @@ namespace Base
|
||||
class BaseExport AbstractExceptionProducer : public AbstractProducer
|
||||
{
|
||||
public:
|
||||
AbstractExceptionProducer () {}
|
||||
~AbstractExceptionProducer() {}
|
||||
AbstractExceptionProducer () = default;
|
||||
// just implement it
|
||||
void* Produce () const {
|
||||
return nullptr;
|
||||
@@ -59,8 +60,7 @@ public:
|
||||
private:
|
||||
static ExceptionFactory* _pcSingleton;
|
||||
|
||||
ExceptionFactory(){}
|
||||
~ExceptionFactory(){}
|
||||
ExceptionFactory() = default;
|
||||
};
|
||||
|
||||
/* Producers */
|
||||
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
/// Produce an instance
|
||||
virtual void* Produce () const
|
||||
{
|
||||
return (void*)mScript;
|
||||
return const_cast<char*>(mScript);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user