Hi Torben, osgDB::Serializers is used for serialization I/O operations, as the main part of the new osgb/osgt formats. At present it doesn't have a composite serializer type. Please free free to test, submit and give more advices. :)
ADD_LIST_SERIALIZER will traverse a std::vector or std::list and accept elements of common types (bool, int, float, ...) and objects inherited from osg::Object. The override of << and >> operators in InputStream and OutputStream will do the actual read/write work. Your class must have a setPropertyList()/getPropertyList() like method pair for the serializer to call, for instance, ImageStream::setAudioStreams()/getAudioStreams(). Wang Rui 2010/2/12 Torben Dannhauer <[email protected]>: > Hello, > > How does ADD_LIST_SERIALIZER work? > > in sourcecode, some classes call it like > > Code: > > ADD_LIST_SERIALIZER( AudioStreams, osg::ImageStream::AudioStreams ); > > > > > I read > http://www.openscenegraph.org/projects/osg/wiki/Support/KnowledgeBase/SerializationSupport > , but there is only mentiond that this serializer iterates through the > std::vector. > > How is the type in each element serialized? Does the LIST serializer query an > other serializer recursive, or how is the "payload" serialized? > > Thank you for your help! > > > Best wishes, > Torben > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=24056#24056 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

