Hi, Am I correct when assuming that fields holding such a variable (like a pointer to type X) should not be externally visible, as the pointer is most likely not created by OpenSG and therefore synchronization is not possible? Or should I synchronize to some special value like 0x1 (an unusual value for a pointer) and catch that case somehow after synchronization?
In my case the pointer will point to some kind of cache. A big database with thousands of entries is available and every server will load it independently. If the name of an item is set, the framework should look it up in the database and store the pointer to the item found. Aloha, Andi > -----Original Message----- > From: Carsten Neumann [mailto:[email protected]] > Sent: Dienstag, 14. Juli 2009 16:15 > To: [email protected] > Subject: Re: [Opensg-users] fcd2code + weak ptr > > > ah, this reminds me that I still need to add the example of how to add > a new type (that can be used in Fields) to the system. > You can use the header attribute of <Field> to set the header file. In > order for it to work you also need a specialization of FieldTraits<T> > for MyClass. Until the example is up you could look at > Source/WindowSystem/X/OSGXWindowDataFields.h or the WIN32 equivalent to > see the minimal contents to make it work. > > Cheers, > Carsten > > ------------------------------------------------------------------------------ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
