Re: [osg-users] How does ADD_LIST_SERIALIZER work?

2010-02-23 Thread Wang Rui
Hi Torben, Sorry for the delay. I think that you have to override the className() and libraryName() methods of your dataIO_transportContainer class, which are used for searching recorded wrappers. A simpler way is to use the META_Node macro: namespace userNS { class dataIO_transportContainer :

Re: [osg-users] How does ADD_LIST_SERIALIZER work?

2010-02-23 Thread Torben Dannhauer
Hi Wang, yes, I realized this namespace requirement and added it to my application. Isn't very sophisticated, just a namespace to get serialization working. I'll have a look at META_Node to learn what it does. Thank you! Cheers, Torben -- Read this topic online here:

Re: [osg-users] How does ADD_LIST_SERIALIZER work?

2010-02-13 Thread Torben Dannhauer
Hi, Well, I have defined my wrapper for my testclass and it compiles, unfortunately it is not serialized. My testcall is: Code: dataIO_transportContainer* test = new dataIO_transportContainer(); test-setFrameID( 22 ); std::ofstream myOstream(test.txt );

Re: [osg-users] How does ADD_LIST_SERIALIZER work?

2010-02-12 Thread Torben Dannhauer
Hi Wang, Thank you, I seems to be part of the serializer wiki page, I did not know that this solution is appropriate for my problem, because I did not realize the serializer ist triggered by read/writeNode function. Than this aspect is clear, and I have to learn more about iostream handling

Re: [osg-users] How does ADD_LIST_SERIALIZER work?

2010-02-12 Thread Torben Dannhauer
Hi, I have testes serializer in my class, but im unable to link it. Linker always complain: Code: Fehler 2 error LNK2005: void __cdecl wrapper_propfunc_dataIO_slotDefinition(class osgDB::ObjectWrapper *) (?wrapper_propfunc_dataIO_slotDefinition@@yaxpavobjectwrap...@osgdb@@@Z) ist

Re: [osg-users] How does ADD_LIST_SERIALIZER work?

2010-02-12 Thread Wang Rui
Hi Torben, REGISTER_OBJECT_WRAPPER actually register the wrapper to the Registry instance. It works similar to REGISTER_OSGPLUGIN. So just code as if you are working on plugins. Wang Rui 2010/2/13 Torben Dannhauer z...@saguaro-fight-club.de: Hi, I have testes serializer in my class, but im