// -*- mode: cpp; mode: fold -*- // Description /*{{{*/ // $Id: override.h,v 1.3 2001/05/29 03:49:53 jgg Exp $ /* ###################################################################### Override Store the override file. ##################################################################### */ /*}}}*/ #ifndef OVERRIDE_H #define OVERRIDE_H #ifdef __GNUG__ #pragma interface "override.h" #endif #include #include using std::string; using std::map; class Override { public: struct Item { string Priority; string Section; string OldMaint; string NewMaint; string SwapMaint(string Orig,bool &Failed); }; map Mapping; inline Item *GetItem(string Package) { map::iterator I = Mapping.find(Package); if (I == Mapping.end()) return 0; return &I->second; }; bool ReadOverride(string File,bool Source = false); }; #endif