[Xapian-discuss] Swig on matchspy
Yann ROBIN
me.show at gmail.com
Fri Dec 12 15:45:38 GMT 2008
On Wed, Dec 10, 2008 at 2:18 AM, Olly Betts <olly at survex.com> wrote:
>
> SWIG can actually wrap std::map, but I think you would do better to
> convert the returned std::map to a native C# equivalent.
>
> So you want to %extend ValueCountMatchSpy with a new method which calls
> get_values() and then uses C#'s C API to build the appropriate C# object
> and return it. If you call the new method GetValues() you can then
> %ignore the C++ get_values() method.
>
> I don't know a lot about C# though, so I don't know the details of how
> this is done there.
>
Thanks, I'm gonna try something like that. Just need to seek into the
swig doc ;)
--
Yann
More information about the Xapian-discuss
mailing list