Re: [Yade-dev] [deprecated list] Special serialization treatment

2009-07-08 Thread Vincent Richefeu
Vincent, to me, the GroupRelationData concept is not very clear. Can I have some questions? 1. Why not have just one table inside, and every engine that needs the data could create as much instances as necessary, one for every parameter? It would seem more logical than having that inside MetaBo

Re: [Yade-dev] [deprecated list] Special serialization treatment

2009-07-08 Thread Václav Šmilauer
Vincent, to me, the GroupRelationData concept is not very clear. Can I have some questions? 1. Why not have just one table inside, and every engine that needs the data could create as much instances as necessary, one for every parameter? It would seem more logical than having that inside MetaBody.

Re: [Yade-dev] [deprecated list] Special serialization treatment

2009-07-07 Thread Janek Kozicki
Václav Šmilauer said: (by the date of Tue, 07 Jul 2009 08:57:13 +0200) > Vincent, you can have a look at > InteractionContainer::preProcessAttributes and postProcessAttributes. It yes, preProcessAttributes and postProcessAttributes is the solution for you. I'm doing similar thing in pkg/sn

Re: [Yade-dev] [deprecated list] Special serialization treatment

2009-07-06 Thread Václav Šmilauer
Are you trying to serialize a C array? It's not supported. And won't ever be. You don't want to add support for it. Easiest if you switch to std::vector<> and it will work straight away. otherwise I don't see what is the problem. REGISTER_ATTRIBUTE works for every type, except C array and poin

Re: [Yade-dev] [deprecated list] Special serialization treatment

2009-07-06 Thread Václav Šmilauer
When a string is serialized, all space characters become   Is this normal? Yes, they are translated so that special characters in string don't confuse the parser. They are translated back to unescaped characters when reading the stream automatically. No need to avoid that. V. _

Re: [Yade-dev] [deprecated list] Special serialization treatment

2009-07-06 Thread Vincent Richefeu
When a string is serialized, all space characters become   Is this normal? How can I do to avoid this? thanks, VR ___ Mailing list: https://launchpad.net/~yade-dev Post to : yade-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-dev

Re: [Yade-dev] [deprecated list] Special serialization treatment

2009-07-06 Thread Vincent Richefeu
Le 6 juil. 09 à 12:11, Janek Kozicki a écrit : Are you trying to serialize a C array? It's not supported. And won't ever be. You don't want to add support for it. Easiest if you switch to std::vector<> and it will work straight away. The class I want to serialize is GroupRelationData. The pro

Re: [Yade-dev] [deprecated list] Special serialization treatment

2009-07-06 Thread Janek Kozicki
Vincent Richefeu said: (by the date of Fri, 3 Jul 2009 16:29:28 +0200) > Janek, > > Could you please remind me where I could include the code to perform > special treatment for the serialization? > I hope my question is claire enough. > Practically, I would like to do something like this: >

Re: [Yade-dev] [deprecated list] Special serialization treatment

2009-07-06 Thread Janek Kozicki
Vincent Richefeu said: (by the date of Fri, 3 Jul 2009 16:29:28 +0200) > Janek, > > Could you please remind me where I could include the code to perform > special treatment for the serialization? > I hope my question is claire enough. > Practically, I would like to do something like this: >

Re: [Yade-dev] [deprecated list] Special serialization treatment

2009-07-06 Thread Janek Kozicki
Vincent Richefeu said: (by the date of Fri, 3 Jul 2009 16:29:28 +0200) > Janek, > > Could you please remind me where I could include the code to perform > special treatment for the serialization? > I hope my question is claire enough. > Practically, I would like to do something like this: >