|
Boost Users : |
Subject: Re: [Boost-users] encoding data when serializing
From: Sean Farrow (sean.farrow_at_[hidden])
Date: 2012-03-09 11:30:24
What does the facet need to do?
Cheers
Sean.
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Robert Ramey
Sent: 09 March 2012 16:09
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] encoding data when serializing
The way to do this is to
a) make a custom codecvt facet for the i/o stream.
b) open an instance of the output/input stream with this codecvt facet
c) use this stream when creating save/loading archives
d) use as normal.
boost iostreams might provide another way to do this.
boost serialization has code in it for encoding/decoding
data as base64. This code would be used to implement
the codecvt facet as described above.
Robert Ramey
Sean Farrow wrote:
> Hi:
> Is there a way of telling boost serialization to encode everything to
> base64 when encoding to xml.
> We are using std::wstring primarily.
> Any help appreciated.
> Cheers
> Sean.
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net