apt @VERSION@

vendor.h

00001 #ifndef PKGLIB_VENDOR_H
00002 #define PKGLIB_VENDOR_H
00003 #include <string>
00004 #include <vector>
00005 #include <map>
00006 
00007 #include <apt-pkg/macros.h>
00008 
00009 using std::string;
00010 
00011 // A class representing a particular software provider. 
00012 class __deprecated Vendor
00013 {
00014    public:
00015    struct Fingerprint
00016    {
00017       string Print;
00018       string Description;
00019    };
00020 
00021    protected:
00022    string VendorID;
00023    string Origin;
00024    std::map<string, string> Fingerprints;
00025 
00026    public:
00027    Vendor(string VendorID, string Origin,
00028           std::vector<struct Fingerprint *> *FingerprintList);
00029    virtual const string& GetVendorID() const { return VendorID; };
00030    virtual const string LookupFingerprint(string Print) const;
00031    virtual bool CheckDist(string Dist);
00032    virtual ~Vendor(){};
00033 };
00034 
00035 #endif