diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:43 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:43 +0000 |
commit | 9c14e3d619e713aefa623986b5bbae81a1d6cc94 (patch) | |
tree | 282c77581b35bbdc46faa400be5d64ec37605507 /apt-pkg/contrib/configuration.h | |
parent | 6c139d6e362f04a1582e8a8f511f8aeab031fecf (diff) |
Config class and source list
Author: jgg
Date: 1998-07-09 05:12:27 GMT
Config class and source list
Diffstat (limited to 'apt-pkg/contrib/configuration.h')
-rw-r--r-- | apt-pkg/contrib/configuration.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apt-pkg/contrib/configuration.h b/apt-pkg/contrib/configuration.h index 7476346ef..bd06f5e37 100644 --- a/apt-pkg/contrib/configuration.h +++ b/apt-pkg/contrib/configuration.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: configuration.h,v 1.1 1998/07/07 04:17:10 jgg Exp $ +// $Id: configuration.h,v 1.2 1998/07/09 05:12:34 jgg Exp $ /* ###################################################################### Configuration Class @@ -21,8 +21,8 @@ ##################################################################### */ /*}}}*/ // Header section: pkglib -#ifndef PKGLIB_TAGFILE_H -#define PKGLIB_TAGFILE_H +#ifndef PKGLIB_CONFIGURATION_H +#define PKGLIB_CONFIGURATION_H #ifdef __GNUG__ #pragma interface "pkglib/configuration.h" @@ -36,6 +36,7 @@ class Configuration { string Value; string Tag; + Item *Parent; Item *Child; Item *Next; Item() : Child(0), Next(0) {}; @@ -48,11 +49,12 @@ class Configuration public: string Find(const char *Name,const char *Default = 0); + string FindDir(const char *Name,const char *Default = 0); int FindI(const char *Name,int Default = 0); void Set(const char *Name,string Value); void Set(const char *Name,int Value); - + Configuration(); }; |