|
Boost : |
Subject: [boost] [property_tree] include directive for non-info files
From: Ivan Le Lann (ivan.lelann_at_[hidden])
Date: 2011-09-29 10:18:49
Hi,
In Boost.PropertyTree, INFO format has the nice #include directive.
But it seems you cannot include other formats.
Typically such INFO file,
key
{
#include_xml "my.xml"
}
with "my.xml" : <root><child>kid</child></root>
could give : get<std::string> ("key.root.child") == "kid"
A very quick look at info parser makes me think that
it would be easy to implement. Any comment ?
Regards,
Ivan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk