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