apt 3.2.0 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 int DoCmpVersion(const char *A, const char *Aend,
27 const char *B, const char *Bend) override APT_PURE;
28 bool CheckDep(const char *PkgVer, int Op, const char *DepVer) override APT_PURE;
29 int DoCmpReleaseVer(const char *A, const char *Aend,
30 const char *B, const char *Bend) override APT_PURE
31 {
32 return DoCmpVersion(A,Aend,B,Bend);
33 }
34 std::string UpstreamVersion(const char *A) override;
35
36 debVersioningSystem();
37};
38
39 extern APT_PUBLIC debVersioningSystem debVS;
40
41#endif
debVersioningSystem
Definition debversion.h:19