|
Boost Users : |
Subject: Re: [Boost-users] [Boost.PropertyTree] Storing pointers and writing data with parser.
From: Jani Plesnicar (plesnicar.jani_at_[hidden])
Date: 2010-06-30 12:47:43
Hmm, i didnt know that the ptree stores all data as a string. which is kind
of slow for my usage.
On Wed, Jun 30, 2010 at 6:40 PM, Sebastian Redl <
sebastian.redl_at_[hidden]> wrote:
> On 06/30/2010 06:22 PM, Jani Plesnicar wrote:
> > Hy i am trying to store pointers in Property Tree and when i do need
> > to write to some parser data i want to write data to which is
> > "connected" with that pointer. because if i do
> > xml_parser::write_xml(std::cout, _pt_root) i get pointers not the data
> > to which is each leaf pointing to.
> >
> PTree stores the data as strings, and only does conversions when
> inserting/extracting data. Because of this, there is no possible
> interception point in XML writing to get the data you want.
> You could make a PTree that has a data type other than string, but
> write_xml won't work with it.
> I'm sorry, but I can't think of a way to do what you want.
>
> Sebastian
> _______________________________________________
> 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