Go to the documentation of this file.
18 #ifndef CUPT_CACHE_VERSION_SEEN
19 #define CUPT_CACHE_VERSION_SEEN
26 #include <cupt/fwd.hpp>
57 enum Type { Required, Important, Standard, Optional, Extra };
59 static const string strings[];
107 string getCodenameAndComponentString(
const string&)
const;
vector< Source > sources
list of sources
Definition: version.hpp:68
virtual bool areHashesEqual(const Version *other) const =0
determines file equality between two versions
string packageName
package name
Definition: version.hpp:69
virtual ~Version()
destructor
string name
file name
Definition: version.hpp:64
download place record
Definition: version.hpp:49
file information
Definition: version.hpp:63
Type
priority types
Definition: version.hpp:57
map< string, string > * others
unknown fields in the form 'name' -> 'value', NULL by default
Definition: version.hpp:74
bool operator<(const Version &) const
less-than operator
HashSums hashSums
hash sums
Definition: version.hpp:66
static bool parseRelations
enables parsing relation fields in versions, true by default
Definition: version.hpp:100
string baseUri
base URI
Definition: version.hpp:50
string directory
remote directory containing files
Definition: version.hpp:45
release information
Definition: releaseinfo.hpp:31
common version information
Definition: version.hpp:40
static bool parseInfoOnly
enables parsing info-only fields in versions, true by default
Definition: version.hpp:102
hash sums
Definition: hashsums.hpp:29
string directory
directory on the baseUri
Definition: version.hpp:51
vector< DownloadRecord > getDownloadInfo() const
gets list of available download records for version
uint32_t size
file size
Definition: version.hpp:65
string maintainer
maintainer (usually name and mail address)
Definition: version.hpp:72
priority
Definition: version.hpp:55
static bool parseOthers
enables parsing unknown fields in versions, false by default
Definition: version.hpp:104
string section
section
Definition: version.hpp:71
bool isVerified() const
does version have at least one verified Source?
string versionString
version
Definition: version.hpp:73
where version comes from
Definition: version.hpp:43
const ReleaseInfo * release
release info
Definition: version.hpp:44
Priorities::Type priority
priority
Definition: version.hpp:70