|
Boost : |
Subject: Re: [boost] [property_tree] include directive for non-info files
From: Ivan Le Lann (ivan.lelann_at_[hidden])
Date: 2011-10-24 06:57:13
----- "Sebastian Redl" <sebastian.redl_at_[hidden]> a écrit :
> On 29.09.2011 16:18, Ivan Le Lann wrote:
> > 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 ?
> >
> This is a strange request. What is your use case?
>
Thanks for your answer and sorry for the delay.
Some part of my configuration are XML files given by
third parties and, being particularly lazy, I did not want
to write the few lines needed to handle the indirection. :-)
> I'm rather disinclined to implement it, since it would create
> cross-dependencies between the various parsers.
>
Yeah, I kind of exspected this answer. It probably makes sense.
Regards,
Ivan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk