]> git.saurik.com Git - apt.git/blame - ftparchive/override.h
Join with aliencode
[apt.git] / ftparchive / override.h
CommitLineData
b2e465d6
AL
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3// $Id: override.h,v 1.2 2001/02/20 07:03:18 jgg Exp $
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>
21
22class Override
23{
24 public:
25
26 struct Item
27 {
28 string Priority;
29 string Section;
30 string OldMaint;
31 string NewMaint;
32
33 string SwapMaint(string Orig,bool &Failed);
34 };
35
36 map<string,Item> Mapping;
37
38 inline Item *GetItem(string Package)
39 {
40 map<string,Item>::iterator I = Mapping.find(Package);
41 if (I == Mapping.end())
42 return 0;
43 return &I->second;
44 };
45
46 bool ReadOverride(string File,bool Source = false);
47};
48
49#endif
50