Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.PropertyTree] Is it possible to populate a tree with user defined parser?
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2011-11-07 08:45:04


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


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