X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PythonPublisher.hh;h=b6b6a5e23cc1b53377ac746c5196a298d9443093;hb=c39edbfdec96e88bdafa0b771939924f73799e84;hp=b00c983bb4c6aad57e0c624649f0fca32a2f7071;hpb=24533960cdd5783a6b071da50e45cf45033afe66;p=pykit.git diff --git a/PythonPublisher.hh b/PythonPublisher.hh index b00c983..b6b6a5e 100644 --- a/PythonPublisher.hh +++ b/PythonPublisher.hh @@ -10,7 +10,7 @@ #define HH_PyKit_PythonPublisher_ 1 // Custom includes -#include +#include #include "Publisher.hh" //#include "PythonPublisher.mpp" @@ -22,18 +22,16 @@ namespace pykit { : public Publisher { public: - PythonPublisher(std::string initPy); + explicit PythonPublisher(std::string initPy); + ~PythonPublisher(); void publish(Request & request); private: - boost::python::dict mainNamespace_; - Publisher * pythonPublisher_; + struct Impl; + boost::scoped_ptr impl_; }; -# define PYTHON_PREPARE_IMPORT(module) \ - PyImport_AppendInittab(const_cast(#module), init ## module) - } ///////////////////////////////hh.e////////////////////////////////////////