[Boost.PropertyTree] Is it possible to populate a tree with user defined parser?
Hi, I would like to use PropertyTree as a higher level interface to access our project's config data. However, the config data can be accessed only through C API calls, so I cannot use the XML or INI parser. I suppose that PropertyTree has a polimorfic implementataion, which provides an interface for which a parser must conform, am I right? Thanks, Gabor
On 07.11.2011 13:48, Gábor Márton wrote:
Hi,
I would like to use PropertyTree as a higher level interface to access our project's config data. However, the config data can be accessed only through C API calls, so I cannot use the XML or INI parser. I suppose that PropertyTree has a polimorfic implementataion, which provides an interface for which a parser must conform, am I right?
No. "Parsers" are just free functions that populate and return a property tree, or take an existing tree and write it out. There is zero special support in the library for custom parsers, but nor is there any impediment. Sebastian
participants (2)
-
Gábor Márton
-
Sebastian Redl