Boost logo

Boost :

From: Ray Djajadinata (rayfd_at_[hidden])
Date: 2000-01-24 21:49:14


Hi Dietmar,

Yup, exactly. About the hierarchical properties, I guess it depends on how we
look at it, doesn't it? I think it's a bit like Java package, i.e.: packages
that seem to be in a hierarchy--as far as Java is concerned--are not actually
related to each other. The relation between them is in the programmer's mind
(well, and in the directory structure as well, for this matter).

Is there something about hierarchical properties that I missed out? Are there
relations between them other than those I'm aware of? As far as the properties
file and the parser class are concerned, a property under another property is
just yet another property, right?

Kinda like this class, very simple, no magic, no esoteric stuff, but useful
nevertheless (at least for me so far ;o) ). Of course, you can always extend
this class to provide registry access...

Regards,
Ray

Hi,
At 06:54 AM 1/24/00 -0500, Dave Abrahams wrote:
>Er, what's a property file? I use Mac/Win/Linux and have never heard of
> one. One emergent standard seems to be .ini files...

Property files are used with Java. The format is basically sequence
of assignments to names, eg.:

  name = Dietmar
  dietmar.workinggroup = library

Basically the first line associates the property "name" with the value
"Dietmar". The next line does basically the same, although it looks more
hierarchical. I'm not sure whether the Java interface provides hierarchical
access to properties but this is useful in some situations.

It is no magic but quite useful. For example, this can be used easily to
obtain parameter where to look things up, where to put log files, etc.

Regards,
  dk


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk