The problem with this solution is that it is time consuming, to open file for a key, i would like to use the boost serializeation to improve  time preformance.

What is realy required is some mechanism, to identify an instance according to its key and only than read its data. Thus reading only the required instnace (accordig to its key) and not also the previous data at the file, someting like seek.

I hoped that "XML boost" can supply someting like that, but could not find how.

 

Thanks,

-Ariella

----- Original Message ----
From: gchen <chengang31@gmail.com>
To: boost-users@lists.boost.org
Sent: Wednesday, July 16, 2008 9:43:56 AM
Subject: Re: [Boost-users] Boost serialization: is there a way to perform selective read

ari vol wrote:
> Hey,
>
> I would like to know whether there is a way to preform selective read
> using Boost serialization
> <http://www.boost.org/doc/libs/1_35_0/libs/serialization/doc/index.html>,
> thus reading serialized instance with its id/key.
>
> The implementation that i know is saving instances to a file and then
> loading them all according to the saving order. Is there a way to read
> only one selected instance from the file.
>

How about serializing objects separately? I mean instead of saving a
object and its children objects into a big file, simply saving them  into
different files.


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users