Simon Taylor <simontaylor1@xxxxxxxxxxxx> wrote:
> DarkWyrm wrote:
> > Alexandre Deckner wrote:
> >> David McPaul wrote :
> >>> Also wasn't there a class that made reading/writing config files
> > > > easy?
> > Yep. It's called BMessage. ;) Seriously. BMessages are easy
> > transfer
> > data into and out of, and the reading/writing part is handled with
> > Flatten/Unflatten in combo with BFile.
> Although they're not readily editable as a text file. I think there's
> a
> kernel_settings class or something, but don't know any more details,
> sorry.
We have made the driver_settings available in userland as well. For an
example on how to use them, please have a look at the net_server
Settings.cpp - it uses driver_settings files, and translates them into
BMessages for internal handling.
Bye,
Axel.