~ubuntu-branches/ubuntu/trusty/apt/trusty

« back to all changes in this revision

Viewing changes to apt-pkg/versionmatch.h

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2014-04-01 17:48:58 UTC
  • mfrom: (1.4.87 sid)
  • Revision ID: package-import@ubuntu.com-20140401174858-4mv29mm29zu22fn1
Tags: 1.0.1ubuntu1
merge with the debian/sid 1.0.1 version
(LP: #1302033)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#ifndef PKGLIB_VERSIONMATCH_H
36
36
#define PKGLIB_VERSIONMATCH_H
37
37
 
 
38
#include <apt-pkg/pkgcache.h>
 
39
#include <apt-pkg/cacheiterators.h>
38
40
 
39
41
#include <string>
40
 
#include <apt-pkg/pkgcache.h>
41
42
 
42
43
#ifndef APT_8_CLEANER_HEADERS
43
44
using std::string;
44
45
#endif
45
46
 
46
47
class pkgVersionMatch
47
 
{   
 
48
{
48
49
   // Version Matching
49
50
   std::string VerStr;
50
51
   bool VerPrefixMatch;
60
61
   std::string RelComponent;
61
62
   std::string RelArchitecture;
62
63
   bool MatchAll;
63
 
   
 
64
 
64
65
   // Origin Matching
65
66
   std::string OrSite;
66
 
   
 
67
 
67
68
   public:
68
 
   
 
69
 
69
70
   enum MatchType {None = 0,Version,Release,Origin} Type;
70
 
   
71
 
   bool MatchVer(const char *A,std::string B,bool Prefix);
 
71
 
 
72
   bool MatchVer(const char *A,std::string B,bool Prefix) APT_PURE;
72
73
   bool ExpressionMatches(const char *pattern, const char *string);
73
74
   bool ExpressionMatches(const std::string& pattern, const char *string);
74
75
   bool FileMatch(pkgCache::PkgFileIterator File);
75
76
   pkgCache::VerIterator Find(pkgCache::PkgIterator Pkg);
76
 
                               
 
77
 
77
78
   pkgVersionMatch(std::string Data,MatchType Type);
78
79
};
79
80