On Mar 27, 2006, at 2:19 PM, Radu Bogdan Rusu wrote:
> More of a question, but: what are the pro/against thoughts on
> changing the configuration to XML-like structures?
I don't personally like XML because it tends to be more verbose and
less human-readable than simpler formats like the one we're using
now. However, I'm something of a dinosaur about things like this,
and I could be convinced that XML really is better.
In the meantime, if you're interested, you could add an XML
configuration file reader. It needn't replace the existing reader.
You could make ConfigFile an abstract interface class with two
implementations: one for the current format and another for the XML
format. Then users of ConfigFile (e.g., the 'player' TCP server)
could choose which they want (e.g., explicitly by command-line
option, or implicitly based on the extension of the filename).
Adhering to the ConfigFile API would likely limit what you can do
with the XML format, but it would let us explore the use of XML
configuration files without having to change a lot of code (remember
that every driver gets passed a ConfigFile pointer).
I'd be happy to incorporate patches along these lines.