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 #ifndef APT_8_CLEANER_HEADERS
00010 using std::string;
00011 #endif
00012 
00013 // A class representing a particular software provider.
00014 class __deprecated Vendor
00015 {
00016    public:
00017    struct Fingerprint
00018    {
00019       std::string Print;
00020       std::string Description;
00021    };
00022 
00023    protected:
00024    std::string VendorID;
00025    std::string Origin;
00026    std::map<std::string, std::string> Fingerprints;
00027 
00028    public:
00029    Vendor(std::string VendorID, std::string Origin,
00030           std::vector<struct Fingerprint *> *FingerprintList);
00031    virtual const std::string& GetVendorID() const { return VendorID; };
00032    virtual const std::string LookupFingerprint(std::string Print) const;
00033    virtual bool CheckDist(std::string Dist);
00034    virtual ~Vendor(){};
00035 };
00036 
00037 #endif