sorry Robert but I've not understand what you said...


From: "Robert Osfield" <[EMAIL PROTECTED]>
Reply-To: osg users <[email protected]>
To: "osg users" <[email protected]>
Subject: Re: [osg-users] stringstream and
Date: Wed, 8 Nov 2006 13:28:47 +0000

Hi Leo,

I guess you could just serialize the stringstream out to file once
you've built it.

Robert.

On 11/8/06, Leo Orlandini <[EMAIL PROTECTED]> wrote:
Hello everybody, this is a piece of code I've used in a OSG application:

------------------------------------------------------------------------------------------------------------------------------------
std::stringstream s;
std::string retstring;

osg::ref_ptr<osgDB::ReaderWriter> writer =
osgDB::Registry::instance()->getReaderWriterForExtension(fileextension);

if( !writer.valid() )
    return -1;

osgDB::ReaderWriter::WriteResult res = writer->writeObject(*node,s);
------------------------------------------------------------------------------------------------------------------------------------

I use this code for estimate the size of the file that should store my
node.. eventually I have to save the node in a .ive file (using the function
osgDB::writeNodeFile(...); )...

is there any manner for doing this in a step? is there the possibility of
passing the stringstream as a parameter of writeNodeFile() ?  My code need
the time to write the same node twice...

thanks in advance
Leo

_________________________________________________________________
Memorizza e condividi online le tue foto con Live Space!
http://spaces.live.com/default.aspx?page=Ed02

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_________________________________________________________________
Chiama gratis con Windows Live Messenger http://imagine-msn.com/messenger/launch80/?locale=it-it&TAB=2

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to