]> git.saurik.com Git - apt.git/blob - apt-pkg/vendor.h
- apt-pkg/deb/dpkgpm.cc: initialization order and conversion from
[apt.git] / apt-pkg / vendor.h
1 #ifndef PKGLIB_VENDOR_H
2 #define PKGLIB_VENDOR_H
3 #include <string>
4 #include <vector>
5 #include <map>
6
7
8 using std::string;
9
10 // A class representing a particular software provider.
11 class Vendor
12 {
13 public:
14 struct Fingerprint
15 {
16 string Print;
17 string Description;
18 };
19
20 protected:
21 string VendorID;
22 string Origin;
23 std::map<string, string> Fingerprints;
24
25 public:
26 Vendor(string VendorID, string Origin,
27 std::vector<struct Fingerprint *> *FingerprintList);
28 virtual const string& GetVendorID() const { return VendorID; };
29 virtual const string LookupFingerprint(string Print) const;
30 virtual bool CheckDist(string Dist);
31 virtual ~Vendor(){};
32 };
33
34 #endif