Cupt
|
common version information More...
#include <cupt/cache/version.hpp>
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 | |
bool | isVerified () const |
does version have at least one verified Source? | |
vector< DownloadRecord > | getDownloadInfo () const |
gets list of available download records for version | |
bool | operator< (const Version &) const |
less-than operator | |
Public Attributes | |
vector< Source > | sources |
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 | |
common version information
|
pure virtual |
determines file equality between two versions
other | version to compare with |
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.
bool cupt::cache::Version::operator< | ( | const Version & | ) | const |
less-than operator
Uses pair packageName, versionString for comparison