
23 Sep
2009
23 Sep
'09
7 p.m.
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#sa... I guess a XML archives translate the binary data to encoded text, but that's just a wild guess, I've never tried it.