Refactoring done (was: Strigi refactor)
Cyrille Berger
cberger at cberger.net
Thu Mar 15 22:32:39 GMT 2007
> The reason that it is hard to do away with the jstreams namespace is
> that CLucene uses a few classes that are exactly the same as those in
> Strigi. So for binary compatibility we cannot change these classes. We
> can use some casting trickery to solve it, but that's not pretty.
>
> Strigi:StreamBase<char>* a = getStream();
> jstream::StreamBase<char>* b = static_cast<jstream::StreamBase<char>*>(a);
> indexStream(b);
>
> We would only need this in the CLucene backend. For other backends
> this is not an issue.
Can't namespace jstream = Strigi; in the CLucene backend solve this ? Or I did
completely misunderstood the problem in which case you can kick me hard on
the head ?
--
Cyrille Berger
More information about the kde-core-devel
mailing list