Cupt
|
common version information More...
#include <cupt/cache/version.hpp>
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< DownloadRecord > | getDownloadInfo () 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< 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 |
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 |
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::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