* fix FTBFS
[ntk/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
15#ifdef __GNUG__
16#pragma interface "override.h"
17#endif
18
19#include <map>
20#include <string>
812f4169
AL
21
22using std::string;
23using std::map;
b2e465d6
AL
24
25class Override
26{
27 public:
28
29 struct Item
30 {
31 string Priority;
b2e465d6
AL
32 string OldMaint;
33 string NewMaint;
64177f17
AL
34
35 map<string,string> FieldOverride;
b2e465d6 36 string SwapMaint(string Orig,bool &Failed);
0b41e0e7 37 ~Item() {};
b2e465d6
AL
38 };
39
40 map<string,Item> Mapping;
41
42 inline Item *GetItem(string Package)
43 {
0b41e0e7
MV
44 return GetItem(Package, "");
45 }
46 Item *GetItem(string Package, string Architecture);
b2e465d6
AL
47
48 bool ReadOverride(string File,bool Source = false);
64177f17 49 bool ReadExtraOverride(string File,bool Source = false);
b2e465d6 50};
64177f17 51
b2e465d6
AL
52#endif
53