apt @VERSION@
|
00001 // -*- mode: cpp; mode: fold -*- 00002 // Description /*{{{*/ 00005 /*}}}*/ 00006 #ifndef APT_CACHEFILTER_H 00007 #define APT_CACHEFILTER_H 00008 // Include Files /*{{{*/ 00009 #include <apt-pkg/pkgcache.h> 00010 00011 #include <string> 00012 00013 #include <regex.h> 00014 /*}}}*/ 00015 namespace APT { 00016 namespace CacheFilter { 00017 // PackageNameMatchesRegEx /*{{{*/ 00018 class PackageNameMatchesRegEx { 00019 regex_t* pattern; 00020 public: 00021 PackageNameMatchesRegEx(std::string const &Pattern); 00022 bool operator() (pkgCache::PkgIterator const &Pkg); 00023 bool operator() (pkgCache::GrpIterator const &Grp); 00024 ~PackageNameMatchesRegEx(); 00025 }; 00026 /*}}}*/ 00027 } 00028 } 00029 #endif