Allow the FileFd to use an external Compressor to uncompress a given file
[ntk/apt.git] / apt-pkg / vendorlist.h
CommitLineData
b3d44315
MV
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3// $Id: vendorlist.h,v 1.1.2.1 2003/12/24 23:09:17 mdz Exp $
4/* ######################################################################
5
6 VendorList - Manage a list of vendors
7
8 The Vendor List class provides access to a list of vendors and
9 attributes associated with them, read from a configuration file.
10
11 ##################################################################### */
12 /*}}}*/
13#ifndef PKGLIB_VENDORLIST_H
14#define PKGLIB_VENDORLIST_H
15
16#include <string>
17#include <vector>
82b6682a 18#include <apt-pkg/macros.h>
b3d44315 19
472ff00e
DK
20class Vendor;
21class Configuration;
22
82b6682a 23class __deprecated pkgVendorList
b3d44315
MV
24{
25 protected:
8f3ba4e8 26 std::vector<Vendor const *> VendorList;
b3d44315
MV
27
28 bool CreateList(Configuration& Cnf);
8f3ba4e8 29 const Vendor* LookupFingerprint(std::string Fingerprint);
b3d44315
MV
30
31 public:
8f3ba4e8 32 typedef std::vector<Vendor const *>::const_iterator const_iterator;
b3d44315 33 bool ReadMainList();
8f3ba4e8 34 bool Read(std::string File);
b3d44315
MV
35
36 // List accessors
37 inline const_iterator begin() const {return VendorList.begin();};
38 inline const_iterator end() const {return VendorList.end();};
39 inline unsigned int size() const {return VendorList.size();};
40 inline bool empty() const {return VendorList.empty();};
41
8f3ba4e8 42 const Vendor* FindVendor(const std::vector<std::string> GPGVOutput);
b3d44315
MV
43
44 ~pkgVendorList();
45};
46
47#endif