Cupt
Classes | Public Member Functions | Public Attributes | Static Public Attributes
cupt::cache::Version Struct Reference

common version information More...

#include <cupt/cache/version.hpp>

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

List of all members.

Classes

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

Public Member Functions

 Version ()
 constructor
virtual ~Version ()
 destructor
virtual bool areHashesEqual (const shared_ptr< const Version > &other) const =0
 determines file equality between two versions
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
bool operator== (const Version &) const
 equality operator

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

virtual bool cupt::cache::Version::areHashesEqual ( const shared_ptr< 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::SourceVersion, and cupt::cache::BinaryVersion.

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

less-than operator

Uses pair packageName, versionString for comparison

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

equality operator

Uses pair packageName, versionString for comparison


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