|
Boost : |
From: Ivan Vecerina (ivec_at_[hidden])
Date: 2006-04-24 09:29:10
"Marcin Kalicinski" <kalita_at_[hidden]> wrote in message
news:e2iggr$9lk$1_at_sea.gmane.org...
: In ptree, instead of
:
: settings["whatever.you.name.it"] = QPoint(10, 10);
:
: you do:
:
: settings.put("whatever.you.name.it", 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
that,
: > smooth configuration saving will be impossible.
...
: If you need notifications - and I'm sure there are cases where you must
have
: them - this is the wrong library. Use program_options instead (when it
adds
: support for saving).
What is really being asked for here is (yet another) different interface
for editing a ptree container in memory....
Ivan
-- http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk