]>
Commit | Line | Data |
---|---|---|
da6ee469 JF |
1 | // -*- mode: cpp; mode: fold -*- |
2 | // Description /*{{{*/ | |
3 | // $Id: override.h,v 1.4 2001/06/26 02:50:27 jgg Exp $ | |
4 | /* ###################################################################### | |
5 | ||
6 | Override | |
7 | ||
8 | Store the override file. | |
9 | ||
10 | ##################################################################### */ | |
11 | /*}}}*/ | |
12 | #ifndef OVERRIDE_H | |
13 | #define OVERRIDE_H | |
14 | ||
00ec24d0 | 15 | |
da6ee469 JF |
16 | |
17 | #include <map> | |
18 | #include <string> | |
19 | ||
20 | using std::string; | |
21 | using std::map; | |
22 | ||
23 | class Override | |
24 | { | |
25 | public: | |
26 | ||
27 | struct Item | |
28 | { | |
29 | string Priority; | |
30 | string OldMaint; | |
31 | string NewMaint; | |
32 | ||
33 | map<string,string> FieldOverride; | |
34 | string SwapMaint(string Orig,bool &Failed); | |
35 | ~Item() {}; | |
36 | }; | |
37 | ||
38 | map<string,Item> Mapping; | |
39 | ||
40 | inline Item *GetItem(string Package) | |
41 | { | |
42 | return GetItem(Package, ""); | |
43 | } | |
44 | Item *GetItem(string Package, string Architecture); | |
45 | ||
46 | bool ReadOverride(string File,bool Source = false); | |
47 | bool ReadExtraOverride(string File,bool Source = false); | |
48 | }; | |
49 | ||
50 | #endif | |
51 |