On Jan 23, 2010, at 5:28 PM, Noel O'Boyle wrote: > That's great Andrew (how did you find this out BTW?).
Googled for: swig istream cin First hit was http://old.nabble.com/SWIG---istream-td24872865.html Comment therein from Ben Webb: > If all you want to do is provide an istream object you should be able to > put a minimal definition of something like std::ifstream in your .i > file, so you can create wrapped ifstream objects to pass to your > function. SWIG already ships with some .i files that may help (e.g. > std_iostream.i). Looked at it and it did want I thought I wanted. Looked at the openbabel_python.i file and found other places which already brought in SWIG .i files for std:: classes. Tested it out, and voila! Andrew [email protected] ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ OpenBabel-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
