From 08e8f724674eb96678dcabf856534c58f5c29996 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:50:59 +0000 Subject: Sync Author: jgg Date: 1998-09-22 05:30:24 GMT Sync --- apt-pkg/contrib/configuration.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'apt-pkg/contrib/configuration.h') 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 -- cgit v1.2.3