|
apt @VERSION@
|
00001 // -*- mode: cpp; mode: fold -*- 00002 // Description /*{{{*/ 00003 // $Id: vendorlist.h,v 1.1.2.1 2003/12/24 23:09:17 mdz Exp $ 00004 /* ###################################################################### 00005 00006 VendorList - Manage a list of vendors 00007 00008 The Vendor List class provides access to a list of vendors and 00009 attributes associated with them, read from a configuration file. 00010 00011 ##################################################################### */ 00012 /*}}}*/ 00013 #ifndef PKGLIB_VENDORLIST_H 00014 #define PKGLIB_VENDORLIST_H 00015 00016 #include <string> 00017 #include <vector> 00018 #include <apt-pkg/macros.h> 00019 00020 class Vendor; 00021 class Configuration; 00022 00023 class __deprecated pkgVendorList 00024 { 00025 protected: 00026 std::vector<Vendor const *> VendorList; 00027 00028 bool CreateList(Configuration& Cnf); 00029 const Vendor* LookupFingerprint(std::string Fingerprint); 00030 00031 public: 00032 typedef std::vector<Vendor const *>::const_iterator const_iterator; 00033 bool ReadMainList(); 00034 bool Read(std::string File); 00035 00036 // List accessors 00037 inline const_iterator begin() const {return VendorList.begin();}; 00038 inline const_iterator end() const {return VendorList.end();}; 00039 inline unsigned int size() const {return VendorList.size();}; 00040 inline bool empty() const {return VendorList.empty();}; 00041 00042 const Vendor* FindVendor(const std::vector<std::string> GPGVOutput); 00043 00044 ~pkgVendorList(); 00045 }; 00046 00047 #endif
1.7.4