Cupt
Classes | Public Member Functions | Public Attributes | List of all members
cupt::cache::BinaryVersion Struct Reference

binary version info More...

#include <cupt/cache/binaryversion.hpp>

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

Classes

struct  RelationTypes
 relation types between binary versions More...
 

Public Member Functions

bool isInstalled () const
 is version installed?
 
virtual bool areHashesEqual (const Version *other) const
 determines file equality between two versions More...
 
- Public Member Functions inherited from cupt::cache::Version
 Version ()
 constructor
 
virtual ~Version ()
 destructor
 
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

string architecture
 binary architecture
 
uint32_t installedSize
 approximate size of unpacked file content in bytes
 
string sourcePackageName
 source package name
 
string sourceVersionString
 source version string
 
bool essential
 has version 'essential' flag?
 
bool important
 has version 'important' flag?
 
RelationLine relations [RelationTypes::Count]
 relations with other binary versions
 
vector< Relationprovides
 
string description
 
string descriptionHash
 MD5 hash sum value of the full description.
 
string tags
 tags
 
FileRecord file
 Version::FileRecord.
 
- Public Attributes inherited from cupt::cache::Version
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
 

Additional Inherited Members

- Static Public Attributes inherited from cupt::cache::Version
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

binary version info

Member Function Documentation

◆ areHashesEqual()

virtual bool cupt::cache::BinaryVersion::areHashesEqual ( const Version other) const
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

Implements cupt::cache::Version.

Member Data Documentation

◆ provides

vector<Relation> cupt::cache::BinaryVersion::provides

array of virtual package relations


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