summaryrefslogtreecommitdiff
path: root/apt-pkg/vendor.h
blob: 2d39fd15f391f21e62c087f25395d5d1329d8c7d (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
#ifndef PKGLIB_VENDOR_H
#define PKGLIB_VENDOR_H
#include <string>
#include <vector>
#include <map>


using std::string;

// A class representing a particular software provider. 
class Vendor
{
   public:
   struct Fingerprint
   {
      string Print;
      string Description;
   };

   protected:
   string VendorID;
   string Origin;
   std::map<string, string> Fingerprints;

   public:
   Vendor(string VendorID, string Origin,
          std::vector<struct Fingerprint *> *FingerprintList);
   virtual const string& GetVendorID() const { return VendorID; };
   virtual const string LookupFingerprint(string Print) const;
   virtual bool CheckDist(string Dist);
   virtual ~Vendor(){};
};

#endif