[C++-sig] Conversion of python files to C++ ostreams
Ralf W. Grosse-Kunstleve
rwgk at yahoo.com
Tue Mar 30 20:33:37 CEST 2010
This is used in production code:
http://cctbx.svn.sourceforge.net/viewvc/cctbx/trunk/boost_adaptbx/python_streambuf.h?view=markup
See also:
http://cctbx.svn.sourceforge.net/viewvc/cctbx/trunk/boost_adaptbx/tests/
python_streambuf_test_ext.cpp
tst_python_streambuf.py
tst_stderr_stdout.py
tst_stdin.py
tst_stdout.py
The easiest way to get everything is to download from
http://cci.lbl.gov/boostbx_bundles/current/
and run e.g.
perl boostbx_bundle.selfx
Ideally this would be part of Boost.Python proper, as built-in converters for std::istream and std::ostream, but this would require a volunteer.
Ralf
More information about the Cplusplus-sig
mailing list