|
Re: Converting CString to/from std::string: msg#00261python.c++
--- Nikolai Kirsebom <nikolai@xxxxxxxx> wrote: > I have a rather large set of C++ classes I want to make accessible > (initially only parts of some of the classes) from Python. I cannot > change the classes as they are defined and used throughout a large > application. Some of the methods take CString as parameters and others > return CString values. > > Does anyone have suggestion on how I can convert these parameters so > that I can use Boost.Python to generate the wrapper code. What do you want your CStrings to be in Python? Regular Python strings? If you think "yes" remind yourself that Python strings are immutable. I.e. if you have function signatures involving non-const references or pointers to CString as arguments or return values the mapping from C++ CStrings to Python strings will not work very well. More depending on your response. Ralf __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | how to obtain a (python) object's __name__ special attribute: 00261, Stefan Seefeld |
|---|---|
| Next by Date: | Re: how to obtain a (python) object's __name__ special attribute: 00261, Ralf W. Grosse-Kunstleve |
| Previous by Thread: | Converting CString to/from std::stringi: 00261, Nikolai Kirsebom |
| Next by Thread: | RE: Converting CString to/from std::string: 00261, Kirsebom Nikolai |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |