Boost logo

Boost :

From: Ivan Vecerina (ivec_at_[hidden])
Date: 2006-04-24 09:29:10

"Marcin Kalicinski" <kalita_at_[hidden]> wrote in message
: In ptree, instead of
: settings[""] = QPoint(10, 10);
: you do:
: settings.put("", QPoint(10, 10));

Now: as any JSON/etc user would expect, the QPoint structure should
be stored as a 2-field node: [ 10, 10 ] or { "x": 10 , "y": 20 }

I asked this before as it is not documented, but I still do not have
an answer: what exactly does it take to achieve this ?

: > Speaking again about program_options and property_tree interaction: if
: > this
: > is ever to work, I want property_tree to expose some "changed" events,
: > like
: > W3W DOM has, that I can catch to sync data back to storage. Without
: > smooth configuration saving will be impossible.
: If you need notifications - and I'm sure there are cases where you must
: them - this is the wrong library. Use program_options instead (when it
: support for saving).

What is really being asked for here is (yet another) different interface
for editing a ptree container in memory....


-- <- email contact form

Boost list run by bdawes at, gregod at, cpdaniel at, john at