]> git.saurik.com Git - apt.git/blob - apt-pkg/cachefilter.h
show in madison command again also source packages (LP: #614589)
[apt.git] / apt-pkg / cachefilter.h
1 // -*- mode: cpp; mode: fold -*-
2 // Description /*{{{*/
3 /** \file cachefilter.h
4 Collection of functor classes */
5 /*}}}*/
6 #ifndef APT_CACHEFILTER_H
7 #define APT_CACHEFILTER_H
8 // Include Files /*{{{*/
9 #include <apt-pkg/pkgcache.h>
10
11 #include <string>
12
13 #include <regex.h>
14 /*}}}*/
15 namespace APT {
16 namespace CacheFilter {
17 // PackageNameMatchesRegEx /*{{{*/
18 class PackageNameMatchesRegEx {
19 regex_t* pattern;
20 public:
21 PackageNameMatchesRegEx(std::string const &Pattern);
22 bool operator() (pkgCache::PkgIterator const &Pkg);
23 bool operator() (pkgCache::GrpIterator const &Grp);
24 ~PackageNameMatchesRegEx();
25 };
26 /*}}}*/
27 }
28 }
29 #endif