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