blob: 63f123c420c51641d0b2cb057591520d3f627f14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// $Id: override.h,v 1.2 2001/02/20 07:03:18 jgg Exp $
/* ######################################################################
Override
Store the override file.
##################################################################### */
/*}}}*/
#ifndef OVERRIDE_H
#define OVERRIDE_H
#ifdef __GNUG__
#pragma interface "override.h"
#endif
#include <map>
#include <string>
class Override
{
public:
struct Item
{
string Priority;
string Section;
string OldMaint;
string NewMaint;
string SwapMaint(string Orig,bool &Failed);
};
map<string,Item> Mapping;
inline Item *GetItem(string Package)
{
map<string,Item>::iterator I = Mapping.find(Package);
if (I == Mapping.end())
return 0;
return &I->second;
};
bool ReadOverride(string File,bool Source = false);
};
#endif
|