Cupt
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
cupt::cache::Version Struct Referenceabstract

common version information More...

#include <cupt/cache/version.hpp>

Inheritance diagram for cupt::cache::Version:
cupt::cache::BinaryVersion cupt::cache::SourceVersion

Classes

struct  DownloadRecord
 download place record More...
 
struct  FileRecord
 file information More...
 
struct  Priorities
 priority More...
 
struct  Source
 where version comes from More...
 

Public Member Functions

 Version ()
 constructor
 
virtual ~Version ()
 destructor
 
virtual bool areHashesEqual (const Version *other) const =0
 determines file equality between two versions More...
 
bool isVerified () const
 does version have at least one verified Source?
 
vector< DownloadRecordgetDownloadInfo () const
 gets list of available download records for version
 
bool operator< (const Version &) const
 less-than operator More...
 

Public Attributes

vector< Sourcesources
 list of sources
 
string packageName
 package name
 
Priorities::Type priority
 priority
 
string section
 section
 
string maintainer
 maintainer (usually name and mail address)
 
string versionString
 version
 
map< string, string > * others
 unknown fields in the form 'name' -> 'value', NULL by default
 

Static Public Attributes

static bool parseRelations
 enables parsing relation fields in versions, true by default
 
static bool parseInfoOnly
 enables parsing info-only fields in versions, true by default
 
static bool parseOthers
 enables parsing unknown fields in versions, false by default
 

Detailed Description

common version information

See also
SourceVersion and BinaryVersion

Member Function Documentation

◆ areHashesEqual()

virtual bool cupt::cache::Version::areHashesEqual ( const Version other) const
pure virtual

determines file equality between two versions

Parameters
otherversion to compare with
Returns
true if hash sums of all files in the version match hash sums of all files in the other version, false otherwise

Implemented in cupt::cache::BinaryVersion, and cupt::cache::SourceVersion.

◆ operator<()

bool cupt::cache::Version::operator< ( const Version ) const

less-than operator

Uses pair packageName, versionString for comparison


The documentation for this struct was generated from the following file: