I think the second one, but I suggest to follow the example provided
with the doxygen documentation.

May be you will have to make a wrapper that takes a Python object as
argument, create an oFileObj object within it, and then, call your
function.

I don't have the time now to investigate the problem ... I'll return
on it tomorrow.

Bye,
Michele

2010/4/1 Christopher Bruns <cmbr...@stanford.edu>:
> On Tue, Mar 30, 2010 at 12:02 AM, Michele De Stefano
> <micdestef...@gmail.com> wrote:
>> there is a much easier way to treat a FILE* as a C++ stream. The easy
>> way is to use my open source library (mds-utils,
>> http://code.google.com/p/mds-utils/).
>
> If I have a C++ api like:
>  void foo(ostream& os);
>
> using mds-utils, would I be able to wrap in python:
>
>  foo(sys.stdout) # 1
>
> or would the python side need to be something more like:
>
>  foo(oFileObj(sys.stdout)) # 2
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig@python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>



-- 
Michele De Stefano
http://www.linkedin.com/in/micdestefano
http://code.google.com/p/mds-utils
http://xoomer.virgilio.it/michele_de_stefano
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to