Re: createing a transparent interface for serialization?

  • From: Tyler Littlefield <tyler@xxxxxxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Fri, 08 Oct 2010 07:15:02 -0600

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Sina, Thanks for this--I will take a look again. I didn't see a
c++ lib, but I didn't dig to deep, either.
Thanks again,

On 10/7/2010 10:32 PM, Sina Bahram wrote:
> It exists for c++ as well.
> 
> Take care,
> Sina 
> 
> -----Original Message-----
> From: programmingblind-bounce@xxxxxxxxxxxxx 
> [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Tyler Littlefield
> Sent: Thursday, October 07, 2010 11:05 PM
> To: programmingblind@xxxxxxxxxxxxx
> Subject: Re: createing a transparent interface for serialization?
> 
> Hello,
> - From what I can tell: hybe seems to be a library for Java; is there 
> something similar for c++?
> 
> On 10/6/2010 9:31 AM, Sina Bahram wrote:
>> Have you examined ORM solutions? Hibernate is very popular, for example.
> 
>> Take care,
>> Sina
> 
> 
>> -----Original Message-----
>> From: programmingblind-bounce@xxxxxxxxxxxxx 
>> [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Tyler 
>> Littlefield
>> Sent: Wednesday, October 06, 2010 11:20 AM
>> To: programmingblind@xxxxxxxxxxxxx
>> Subject: createing a transparent interface for serialization?
> 
>> Hello all,
>> I want to set up serialization of objects in my mud engine a bit differently 
>> than it currently is.
>> Right now, Ijust write all the values to a file in binary form, then 
>> read them back in in the same order, but Iwant the user to be able to choose 
>> xml, binary, or any other sort of backend they want
> for serialization.
>> So, Ihave a question. how should this be done? the idea would be for 
>> each object to call a function, without having to know what it is storing.
>> I've thought my player file will look like this:
>> <player>
>> <name>ty</name>
>> <password>asdfghjklasdfghjkl</password>
>> </player>
>> so Isuppose Ican just do a key-value sort of setup where Isend the 
>> name and the value, and binary can ignore the name while XML does not?
>> That being said though, I still need to set it up a bit differently 
>> from that, so any help is appriciated with suggestions and ideas.
> 
> __________
> View the list's information and change your settings at 
> //www.freelists.org/list/programmingblind
> 
> __________
> View the list's information and change your settings at 
> //www.freelists.org/list/programmingblind
> 
> 
> 
> 
__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind




- -- 
Thanks,
Tyler Littlefield
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMrxlVAAoJELDPyrppriJPjSIIALK/ngUkgaNpPkKwJy7P3vVT
EPa6I4RwTF4VnChyEHqqe7E3Y8Vc1b6TAU5CzsTBOcbdgiZIeV19VPPZlBZPQARy
Y2i0dKhZwT2kFyFp+8Y7guT54FeHUh+7tmfX5KvLm/wBMKF/vfWC1+zCLuSvFZ89
iGti7CKcXZU1ooN4YPxbf3NBtvVcnZdHuz+F0kGFIqUCV1bg7jpeG8YLe3BSSaIh
ExCe/Sskgr+g+8fiyNknI4RXxmjAKNNS7qgr5IlJetHVIXyBgYxmqH5qJ4pEDdbV
REaQzGDYBjTxjDcW2RV3v5SlM7ZmAxgl69c3zGRDDJcGppY8SgAJQcXMiq5owEw=
=yatk
-----END PGP SIGNATURE-----
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: