Best way to save/load an object to file?
aarti_pl
aarti at interia.pl
Mon Jun 23 13:50:06 PDT 2008
Saaa pisze:
> Looks interesting, thanks.
> I need to check the code a bit more, but the creating-JSON-archive-part
> really strikes my fancy :)
> Phobos only wouldn't be a problem for me.
> And as I read it, the boost license lets me use the code in compiled form
> without having to put the license in text form. Another plus!
>
>> You may try doost serializer:
>> http://dsource.org/projects/doost/
>>
>> You can serialize to file (generally: different kinds of storages) or to
>> string. There are 2 kinds of archives: simple text archive and JSON
>> archive.
>>
>> See below for use cases:
>> http://dsource.org/projects/doost/browser/trunk/examples/util/serializer/FunctionTest.d
>> http://dsource.org/projects/doost/browser/trunk/examples/util/serializer/FunctionTest1.d
>>
>> Simplest use case for storing in file you can find in FunctionTest1.d -
>> 3rd unit test from top.
>>
>> Currently Phobos only, but should be rather easy to adapt for Tango.
>>
>> BR
>> Marcin Kuszczak
>> (aarti_pl)
>>
Do not hesitate to put comments on forum regarding API/problems/suggestions.
Hope that this library will be useful for you.
BR
Marcin Kuszczak
aarti_pl
More information about the Digitalmars-d-learn
mailing list