diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:59 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:59 +0000 |
commit | 08e8f724674eb96678dcabf856534c58f5c29996 (patch) | |
tree | f8cde76f1af140aa9d0536ea062d6e1fd0379c98 /apt-pkg/contrib/configuration.h | |
parent | c5162d564ac98a1e97812ec5d290d2375c0820d8 (diff) |
Sync
Author: jgg
Date: 1998-09-22 05:30:24 GMT
Sync
Diffstat (limited to 'apt-pkg/contrib/configuration.h')
-rw-r--r-- | apt-pkg/contrib/configuration.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/apt-pkg/contrib/configuration.h b/apt-pkg/contrib/configuration.h index 9229a0f66..1cdf67860 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.3 1998/07/12 23:58:45 jgg Exp $ +// $Id: configuration.h,v 1.4 1998/09/22 05:30:27 jgg Exp $ /* ###################################################################### Configuration Class @@ -51,13 +51,20 @@ class Configuration 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); - + bool FindB(const char *Name,bool Default = false); + + inline void Set(string Name,string Value) {Set(Name.c_str(),Value);}; void Set(const char *Name,string Value); - void Set(const char *Name,int Value); + void Set(const char *Name,int Value); + inline bool Exists(string Name) {return Exists(Name.c_str());}; + bool Exists(const char *Name); + Configuration(); }; extern Configuration *_config; +bool ReadConfigFile(Configuration &Conf,string File); + #endif |