Re: createing a transparent interface for serialization?

  • From: Tyler Littlefield <tyler@xxxxxxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Wed, 06 Oct 2010 10:35:18 -0600

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

where Iwill inject what? I'm not understanding what your telling me, Iguess.
On 10/6/2010 10:10 AM, black ares wrote:
> also you can build a factory architecture where you will inject at
> runtime based on a conficuration
> the actual implementation of a strategy.
> This patern is called inversion of control.
> 
> ----- Original Message ----- From: "Sina Bahram" <sbahram@xxxxxxxxx>
> To: <programmingblind@xxxxxxxxxxxxx>
> Sent: Wednesday, October 06, 2010 6:31 PM
> Subject: RE: createing a transparent interface for serialization?
> 
> 
>> 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




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

iQEcBAEBAgAGBQJMrKVGAAoJELDPyrppriJPKJkH/3Q0ddJ4BP7bwYbNUzlOz7iU
34y1+xgqaAVbPNVgobkRTXyVp3qURvyx118PIIYO+JsPdS3nL28tUiOCevF12n7/
aIGcL5HG6rE7lLQZsXIsxFtJqrf491SLFWvFV6mocu0pzYb2PUT2QVPh721O/4zN
HEeoYz7mQEfxdICZ9ZXC3NWEnJHwgIWpj68pj7tk6ds0fjer6B3KLkDrJdwSEJFD
6qR8yGHTv3YpukKg+2z1BpkBtofLyBATPITkyNOjtk0tfDigGdYRwJaadEEOFB+h
6UwlzNFpZ6fZG+COADx5VQsT2Qz4hikjANWVFhUkCy2Sd1ZNfEw6/38TPPky1WE=
=P6gD
-----END PGP SIGNATURE-----
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: