apt
0.9.7.9
Main Page
Related Pages
Modules
Classes
Files
File List
apt-pkg
cachefilter.h
Go to the documentation of this file.
1
// -*- mode: cpp; mode: fold -*-
2
// Description /*{{{*/
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
{
20
void
*d;
21
regex_t* pattern;
22
public
:
23
PackageNameMatchesRegEx
(std::string
const
&Pattern);
24
bool
operator() (
pkgCache::PkgIterator
const
&Pkg);
25
bool
operator() (
pkgCache::GrpIterator
const
&Grp);
26
~
PackageNameMatchesRegEx
();
27
};
28
/*}}}*/
29
// PackageArchitectureMatchesSpecification /*{{{*/
38
class
PackageArchitectureMatchesSpecification
{
39
std::string literal;
40
std::string complete;
41
bool
isPattern;
43
void
*d;
44
public
:
52
PackageArchitectureMatchesSpecification
(std::string
const
&pattern,
bool
const
isPattern =
true
);
53
bool
operator() (
char
const
*
const
&arch);
54
bool
operator() (
pkgCache::PkgIterator
const
&Pkg);
55
bool
operator() (
pkgCache::VerIterator
const
&Ver);
56
~
PackageArchitectureMatchesSpecification
();
57
};
58
/*}}}*/
59
}
60
}
61
#endif
Generated on Sat Nov 16 2013 12:42:25 for apt by
1.8.1.2