Source

cy-cxxfwk / README

Full commit
cy-cxxfwk
=========

a little example on how to have a cython class blend in into a C++ framework

to test:
--------

::

  $ ./waf configure clean build && \
    (cd __build__; \
     PYTHON=`which python2` LD_LIBRARY_PATH=`pwd` \
     PYTHONPATH=.:${PYTHONPATH} ./test-app && \
     PYTHON=`which python2` LD_LIBRARY_PATH=`pwd` \
     PYTHONPATH=.:${PYTHONPATH} ../test.py)



you should see something like that:

::

   === app ===
   :: python initialized
   ==> cyfwk module imported
   :: import_cyfwk ok
   ===> testing a pure c++ alg...
   :: Alg::Alg()...
   :: Alg::run()...
   ===> testing a cy-alg...
   --- self.i: 42
   ::CyAlgBase::run()...
   --> cy_run_fct...
   --- myalg.run => 42
   --> cy_run_fct...[done]
   === bye.

   === py-app ===
   ==> cyfwk module imported
   --> AlgBase.init
   SubAlg.run ==> 666
   === bye.