30 Jun
2010
30 Jun
'10
4:40 p.m.
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