[vtk-developers] XML readers/writers with user streams

Goodwin Lawlor goodwin.lawlor at ucd.ie
Mon Jul 2 14:58:47 EDT 2007


> Goodwin Lawlor wrote:
> > It seems to be working for me ok... but I haven't tested it 
> extensively. 
> > 
> > I did hit a problem with "Stream->seekp(0)" in vtkXMLWriter - it 
> causes> the failbit to be set... this is a "feature" apparently:
> > 
>
http://groups.google.ie/group/comp.lang.c++/browse_thread/thread/c9a72c04dd8e98e/>
. Using "Stream->clear()" sorts it out though.
> > 
> > Also, "this->DataStream->SetStream(0);" had to moved into the 
> "if" block
> > in vtkXMLWriter::CloseFile().
> > 
> > If anyone is interested I'll put the vtkStringStream class and the
> > patches to vtkXMLWriter/vtkXMLReader up on the bug tracker as an 
> idea.
> Sure.
> 
> Thanks,
> -Brad

Hi Brad,

The class, the patch, and tcl test are here:
http://www.vtk.org/Bug/bug.php?op=show&bugid=5265

Goodwin



More information about the vtk-developers mailing list