apt: apt-pkg/deb/debversion.h Source File

apt 2.9.8 commandline package manager

debversion.h
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3/* ######################################################################
4
5 Debian Version - Versioning system for Debian
6
7 This implements the standard Debian versioning system.
8
9 ##################################################################### */
10 /*}}}*/
11#ifndef PKGLIB_DEBVERSION_H
12#define PKGLIB_DEBVERSION_H
13
14#include <apt-pkg/version.h>
15
16#include <string>
17
18 class APT_PUBLIC debVersioningSystem : public pkgVersioningSystem
19{
20 public:
21
22 static int CmpFragment(const char *A, const char *AEnd, const char *B,
23 const char *BEnd) APT_PURE;
24
25 // Compare versions..
26 virtual int DoCmpVersion(const char *A,const char *Aend,
27 const char *B,const char *Bend) APT_OVERRIDE APT_PURE;
28 virtual bool CheckDep(const char *PkgVer,int Op,const char *DepVer) APT_OVERRIDE APT_PURE;
29 virtual APT_PURE int DoCmpReleaseVer(const char *A,const char *Aend,
30 const char *B,const char *Bend) APT_OVERRIDE
31 {
32 return DoCmpVersion(A,Aend,B,Bend);
33 }
34 virtual std::string UpstreamVersion(const char *A) APT_OVERRIDE;
35
36 debVersioningSystem();
37};
38
39extern APT_PUBLIC debVersioningSystem debVS;
40
41#endif
debVersioningSystem
Definition debversion.h:19
pkgVersioningSystem
Definition version.h:27