$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] serialization of an dynamic array to read/write a image in xml
From: Stefan Strasser (strasser_at_[hidden])
Date: 2009-09-23 15:00:32
Am Tuesday 22 September 2009 15:23:39 schrieb Markus Bader:
> Hello
>
> I like to store and load images from a xml file.
> My problem is now the dynamic array which keeps the image data. I do
> not want to copy it into a container and I do not want to go in a for
> loop over every pixel.
> Any suggestions?
archives must implement load_binary/save_binary functions you can use. you
have to split your serialize function into load/save functions and can call
load_binary/save_binary from there.
see
http://www.boost.org/doc/libs/1_40_0/libs/serialization/doc/archives.html#saving_interface
I guess a XML archives translate the binary data to encoded text, but that's
just a wild guess, I've never tried it.