|
Boost Users : |
Subject: Re: [Boost-users] [Boost.PropertyTree] Storing pointers and writing data with parser.
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2010-06-30 12:40:56
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 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