X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/500827ed367c8ac277abbd582d389f6738905a09..325c0341a1b19de3c1569ce8a6ddadceb7eaf1b5:/apt-pkg/contrib/configuration.h diff --git a/apt-pkg/contrib/configuration.h b/apt-pkg/contrib/configuration.h index 84a8cf07e..789bc82cf 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.13 2001/03/11 07:22:19 jgg Exp $ +// $Id: configuration.h,v 1.16 2002/11/11 06:55:50 doogie Exp $ /* ###################################################################### Configuration Class @@ -33,6 +33,9 @@ #endif #include +#include + +using std::string; class Configuration { @@ -84,11 +87,17 @@ class Configuration bool Exists(const char *Name) const; bool ExistsAny(const char *Name) const; + // clear a whole tree void Clear(string Name); - + + // remove a certain value from a list (e.g. the list of "APT::Keep-Fds") + void Clear(string List, string Value); + void Clear(string List, int Value); + inline const Item *Tree(const char *Name) const {return Lookup(Name);}; - void Dump(); + inline void Dump() { Dump(std::clog); }; + void Dump(std::ostream& str); Configuration(const Item *Root); Configuration();