comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Re: A standard package for config files is needed
Date: Thu, 30 May 2002 21:58:36 +0200
Date: 2002-05-30T21:58:36+02:00	[thread overview]
Message-ID: <3CF6846C.3544EB21@nbi.dk> (raw)
In-Reply-To: slrnaf6onp.lpu.randhol+abuse@kiuk0152.chembio.ntnu.no

Preben Randhol wrote:

> On the GtkAda list there has been some discussion on making a standard
> package for reading/writing configuration files. As most programs need
> this it would be very nice with a small, platform independant, robust
> but easy to use package.

Yes.

If we take a look at the specification (API) side of things
first, then I think such a package would need:

 + (generic?) routines to read and write primitive Ada types
   from/to the configuration data.

 + The data should be stored as key-value pairs, possibly
   embedded in in a hierarchical system of sections.

 + A routine for syncronising the configuration data with
   the external storage in case that is relevant.

 + An option to select another source/target than the
   default storage of the configuration data.

Are there more things we should keep in mind, when
discussing the specification for a simple configuration
management package?

If we take a look at the implementation (file format) side
of things, there are a few things worth noting:

 + Using the same file format on all systems makes it
   slightly easier to write documentation for programs using
   the package (unless the package includes a function
   returning the file format documentation).

 + Using a text based file format makes it easier to copy
   configuration files between different platforms.

 + Using a text based file format allows users to use
   independent tools (for example text editors) to modify
   the configuration.

 + Using a platform specific binary format may make access
   to the configuration data faster.

 + Using typical (or standard) configuration management for
   the individual platforms, will allow users to configure
   programs in a way they are familiar with.

And since the specification and implementation sides of
things can be relatively independent of each other, nothing
prevents us from writing more than one implementation, so
everybody can get to use their choice of configuration files
(also for programs written by other Ada programmers ;-).

Jacob
-- 
"Those who profess to favor freedom and yet depreciate
 agitation, are people who want crops without ploughing the
 ground; they want rain without thunder and lightning; they
 want the ocean without the roar of its waters."
                                        -- Frederick Douglas



  parent reply	other threads:[~2002-05-30 19:58 UTC|newest]

Thread overview: 130+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-28 10:59 A standard package for config files is needed Preben Randhol
2002-05-28 12:09 ` Martin Dowie
2002-05-28 12:09   ` Preben Randhol
2002-05-28 16:33 ` Darren New
2002-05-28 18:10   ` achrist
2002-05-28 20:28     ` Darren New
2002-05-28 22:35   ` Mark Biggar
2002-05-29  3:13     ` Hyman Rosen
2002-05-29  7:18       ` Pascal Obry
2002-05-29 14:40         ` The commercial world needs Ada was " Robert C. Leif
2002-05-29 16:29           ` Darren New
2002-05-29 23:26             ` Robert C. Leif
2002-05-30  0:10               ` Darren New
2002-05-29 17:08         ` Hyman Rosen
2002-05-29 19:34           ` Larry Kilgallen
2002-05-29 11:01   ` Preben Randhol
2002-05-29 16:23     ` Darren New
2002-05-29 21:42       ` achrist
2002-05-30  9:53         ` Preben Randhol
2002-05-30 14:45         ` Gautier
2002-05-30 17:00           ` achrist
2002-05-28 20:44 ` Marin David Condic
2002-05-29 11:05   ` Preben Randhol
2002-05-29 18:09   ` Ted Dennison
2002-05-29 18:59   ` Ted Dennison
2002-05-29 19:49     ` Marin David Condic
2002-05-30 17:52       ` Ted Dennison
2002-05-30 18:21         ` Preben Randhol
2002-05-30 22:55           ` Darren New
2002-05-31 15:52             ` Ted Dennison
2002-05-31 21:31               ` tmoran
2002-06-01 15:39                 ` Stephen Leake
2002-06-03 13:05                 ` Marin David Condic
2002-05-30 20:00         ` Marin David Condic
2002-05-31  6:43         ` Mats Karlssohn
2002-05-31 22:04           ` Robert C. Leif
2002-05-29  2:18 ` SteveD
2002-05-29 11:07   ` Preben Randhol
2002-05-29 12:57     ` SteveD
2002-05-29 13:05       ` Preben Randhol
2002-05-29 13:52         ` SteveD
2002-05-29 13:57           ` Preben Randhol
2002-05-29 16:30           ` Darren New
2002-05-29 19:24             ` Simon Wright
2002-05-30  9:54               ` Preben Randhol
2002-05-29 14:41     ` Robert C. Leif
2002-05-29 14:59       ` Martin Dowie
2002-05-29 15:30       ` Preben Randhol
2002-05-29 15:32       ` Preben Randhol
2002-05-29 19:29         ` Simon Wright
2002-05-31 16:26           ` Preben Randhol
2002-05-31 16:01       ` Ted Dennison
2002-06-01  2:27         ` Robert C. Leif
2002-06-01 16:38           ` Ted Dennison
2002-06-01 17:48             ` Robert C. Leif
2002-06-01 18:11               ` Pascal Obry
2002-06-02  3:30                 ` XML and Ada was " Robert C. Leif
2002-06-02  6:52                   ` Pascal Obry
2002-06-02 16:29                     ` XML and Ada Robert C. Leif
2002-06-02  7:54                   ` XML and Ada was RE: A standard package for config files is needed Gerhard Häring
2002-06-02 15:51                     ` Darren New
2002-06-02 19:02                       ` Preben Randhol
2002-06-02 20:52                         ` Gerhard Häring
2002-06-03  6:10                           ` Preben Randhol
2002-06-02 22:06                         ` Stephen Leake
2002-06-03  2:17                           ` Robert C. Leif
2002-06-04 18:48                             ` Georg Bauhaus
2002-06-05 14:17                               ` Robert C. Leif
2002-06-06 14:15                                 ` Georg Bauhaus
2002-06-07  0:33                                   ` Robert C. Leif
2002-06-07 10:55                                     ` Georg Bauhaus
2002-06-03  2:21                           ` Robert C. Leif
2002-06-03 14:20                             ` Marin David Condic
2002-06-04  1:39                               ` SteveD
2002-06-03  6:13                           ` Preben Randhol
2002-06-04 18:54                           ` Georg Bauhaus
2002-06-09 20:01                             ` Stephen Leake
2002-06-09 22:24                               ` Eric G. Miller
2002-06-10 12:31                                 ` Stephen Leake
2002-06-12  4:17                                   ` Eric G. Miller
2002-06-01 20:36               ` Preben Randhol
2002-06-02  3:30                 ` Robert C. Leif
2002-06-01 20:31             ` Preben Randhol
2002-05-29  7:22 ` Volkert
2002-05-29 14:41   ` Robert C. Leif
2002-05-29 18:26   ` tmoran
2002-05-30  7:41     ` Volkert Barr
2002-05-30  8:34       ` tmoran
2002-05-30  9:03         ` Volkert Barr
2002-05-30 13:39         ` Marin David Condic
2002-05-31 16:25           ` Ted Dennison
2002-05-31 16:50             ` Preben Randhol
2002-05-31 22:24               ` Ted Dennison
2002-06-01 15:44                 ` Stephen Leake
2002-05-31 17:25             ` Marin David Condic
2002-06-01 13:51               ` Preben Randhol
2002-06-03 13:23                 ` Marin David Condic
2002-06-04 11:46                   ` Preben Randhol
2002-06-01 15:53               ` Stephen Leake
2002-05-30 15:08         ` Stephen Leake
2002-05-30 16:07           ` Preben Randhol
2002-05-31 16:39         ` Preben Randhol
2002-05-31 21:31           ` tmoran
2002-05-31  9:05     ` Georg Bauhaus
2002-05-31 11:01       ` Florian Weimer
2002-05-31 13:15       ` Marin David Condic
2002-06-01 15:46         ` Stephen Leake
2002-06-01 16:50           ` Darren New
2002-05-31 13:34       ` Stephen Leake
2002-05-29 19:05   ` Ted Dennison
2002-05-30  7:49     ` Volkert Barr
2002-05-31 16:42       ` Preben Randhol
2002-05-29 17:56 ` Chad R. Meiners
2002-05-29 18:25 ` Ted Dennison
2002-05-30 19:58 ` Jacob Sparre Andersen [this message]
2002-05-30 20:12   ` Marin David Condic
2002-05-31  7:37     ` Preben Randhol
2002-05-31 13:21       ` Marin David Condic
2002-05-31 13:46         ` Marin David Condic
2002-06-01 11:23           ` Preben Randhol
2002-06-01 11:10         ` Preben Randhol
2002-06-01 15:50         ` Stephen Leake
2002-06-03 12:53         ` Jacob Sparre Andersen
2002-05-30 23:08   ` Darren New
2002-05-31 13:30   ` Stephen Leake
2002-06-03  1:00 ` Robert I. Eachus
2002-06-03  6:24   ` Preben Randhol
2002-06-03 15:54     ` Darren New
2002-06-03 16:49       ` Darren New
2002-06-09 21:27   ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox