apt  @VERSION@
cachefilter.h
Go to the documentation of this file.
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 {
00020          void *d;
00021         regex_t* pattern;
00022 public:
00023         PackageNameMatchesRegEx(std::string const &Pattern);
00024         bool operator() (pkgCache::PkgIterator const &Pkg);
00025         bool operator() (pkgCache::GrpIterator const &Grp);
00026         ~PackageNameMatchesRegEx();
00027 };
00028                                                                         /*}}}*/
00029 }
00030 }
00031 #endif