Am 03.07.19 um 16:19 schrieb Cantor, Scott:
> 
> On 7/3/19, 1:31 AM, "Michael Behrisch" <o...@behrisch.de> wrote:
> 
>> Is there already an implementation of an InputSource which reads from an
>> arbitrary std::istream?
> 
> There's no use of STL by and large in the code base. I built my own.

OK, thanks for your fast answer. I tried it and have just one question.
BinInputStream::readBytes takes a XMLByte* const while istream::read
needs a char*. I did a direct cast now
(https://github.com/eclipse/sumo/blob/b723bf401bcba34ef153d5532b3fdda2575db7fd/src/utils/xml/IStreamInputSource.h#L46)
and it works for the inputs I tried. Are there problems to be expected
with unusual inputs and is there a better way to do it?

Best regards
Michael

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to