Allo Nat,

Thank you very much for your reply. I didn't realized I could have this
flexibility with py++ generated code.

Now I could interface these functions.

Cheers!
Benda

Nat Goodspeed <n...@lindenlab.com> writes:

> You want to write a C++ wrapper function something like this:
>
> std::string wrapped_read(size_t len)
> {
>     // manually allocate buffer of size 'len',
>     // e.g. by using std::vector<char>
>     int bytes_read = read(buffer, len);
>     return std::string(buffer, bytes_read);

-- 
XU Benda
Research Center for Neutrino Science
Tohoku University
JAPAN

http://www.awa.tohoku.ac.jp/~benda
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to