]> git.saurik.com Git - apt.git/blame - apt-pkg/vendor.h
* wording fixes (cherry picked from apt--mvo)
[apt.git] / apt-pkg / vendor.h
CommitLineData
7db98ffc
MZ
1#ifndef PKGLIB_VENDOR_H
2#define PKGLIB_VENDOR_H
3#include <string>
4#include <vector>
5#include <map>
6
7#ifdef __GNUG__
8#pragma interface "apt-pkg/vendor.h"
9#endif
10
11using std::string;
12
13// A class representing a particular software provider.
14class Vendor
15{
16 public:
17 struct Fingerprint
18 {
19 string Print;
20 string Description;
21 };
22
23 protected:
24 string VendorID;
25 string Origin;
26 std::map<string, string> Fingerprints;
27
28 public:
29 Vendor(string VendorID, string Origin,
30 std::vector<struct Fingerprint *> *FingerprintList);
31 virtual const string& GetVendorID() const { return VendorID; };
32 virtual const string LookupFingerprint(string Print) const;
33 virtual bool CheckDist(string Dist);
34 virtual ~Vendor(){};
35};
36
37#endif