|
Cupt
|
the source of package and version information More...
#include <cupt/cache.hpp>
Classes | |
| struct | ExtendedInfo |
| extended package information More... | |
| struct | IndexDownloadRecord |
| struct | IndexEntry |
| describes smallest index source piece More... | |
| struct | LocalizationDownloadRecord |
| More... | |
| struct | PinnedVersion |
| contains version and a corresponding pin value More... | |
Public Member Functions | |
| Cache (shared_ptr< const Config > config, bool useSource, bool useBinary, bool useInstalled, const vector< string > &packageNameGlobsToReinstall=vector< string >()) | |
| constructor | |
| virtual | ~Cache () |
| destructor | |
|
vector< shared_ptr< const ReleaseInfo > > | getBinaryReleaseData () const |
| gets release data list of indexed metadata for binary packages | |
|
vector< shared_ptr< const ReleaseInfo > > | getSourceReleaseData () const |
| gets release data list of indexed metadata for source packages | |
| vector< string > | getBinaryPackageNames () const |
| gets the list of names of available binary packages | |
| shared_ptr< const BinaryPackage > | getBinaryPackage (const string &packageName) const |
| gets BinaryPackage by name | |
| vector< string > | getSourcePackageNames () const |
| gets the list of names of available source packages | |
| shared_ptr< const SourcePackage > | getSourcePackage (const string &packageName) const |
| gets SourcePackage by name | |
|
vector< shared_ptr< const BinaryVersion > > | getInstalledVersions () const |
| gets all installed versions | |
| bool | isAutomaticallyInstalled (const string &packageName) const |
| is binary package automatically installed? | |
| vector< IndexEntry > | getIndexEntries () const |
| gets list of available index entries | |
| string | getPathOfReleaseList (const IndexEntry &entry) const |
| string | getPathOfIndexList (const IndexEntry &entry) const |
| | |
| string | getPathOfExtendedStates () const |
| | |
| string | getDownloadUriOfReleaseList (const IndexEntry &) const |
| | |
| vector< IndexDownloadRecord > | getDownloadInfoOfIndexList (const IndexEntry &) const |
| | |
| vector < LocalizationDownloadRecord > | getDownloadInfoOfLocalizedDescriptions (const IndexEntry &) const |
| | |
| shared_ptr< const system::State > | getSystemState () const |
| gets system state | |
| ssize_t | getPin (const shared_ptr< const Version > &) const |
| gets pin value for a version | |
| vector< PinnedVersion > | getSortedPinnedVersions (const shared_ptr< const Package > &) const |
| gets list of versions with pins of certain package | |
| shared_ptr< const Version > | getPolicyVersion (const shared_ptr< const Package > &) const |
| gets version of highest pin from the package | |
|
vector< shared_ptr< const BinaryVersion > > | getSatisfyingVersions (const RelationExpression &) const |
| gets list of binary versions which satisfy given relation expression | |
| const ExtendedInfo & | getExtendedInfo () const |
| gets extended info | |
| pair< string, string > | getLocalizedDescriptions (const shared_ptr< const BinaryVersion > &) const |
| gets localized short and long descriptions for the binary version | |
Static Public Member Functions | |
| static bool | verifySignature (const shared_ptr< const Config > &, const string &path) |
| | |
| static string | getPathOfCopyright (const shared_ptr< const BinaryVersion > &) |
| gets a supposed system path of package copyright file for certain binary version | |
| static string | getPathOfChangelog (const shared_ptr< const BinaryVersion > &) |
| gets a supposed system path of package changelog file for certain binary version | |
Static Public Attributes | |
| static bool | memoize |
| controls internal caching | |
the source of package and version information
| cupt::Cache::Cache | ( | shared_ptr< const Config > | config, |
| bool | useSource, | ||
| bool | useBinary, | ||
| bool | useInstalled, | ||
| const vector< string > & | packageNameGlobsToReinstall = vector< string >() |
||
| ) |
constructor
Reads package metadata and builds index on it.
| config | |
| useSource | whether to read source package metadata |
| useBinary | whether to read binary package metadata |
| useInstalled | whether to read dpkg metadata (installed binary packages) |
| packageNameGlobsToReinstall | array of glob expressions, allow these packages to be re-installed |
| shared_ptr< const BinaryPackage > cupt::Cache::getBinaryPackage | ( | const string & | packageName | ) | const |
gets BinaryPackage by name
| packageName | name of the binary package |
| vector< IndexDownloadRecord > cupt::Cache::getDownloadInfoOfIndexList | ( | const IndexEntry & | ) | const |
| vector< LocalizationDownloadRecord > cupt::Cache::getDownloadInfoOfLocalizedDescriptions | ( | const IndexEntry & | ) | const |
| string cupt::Cache::getDownloadUriOfReleaseList | ( | const IndexEntry & | ) | const |
| pair< string, string > cupt::Cache::getLocalizedDescriptions | ( | const shared_ptr< const BinaryVersion > & | ) | const |
gets localized short and long descriptions for the binary version
|
static |
gets a supposed system path of package changelog file for certain binary version
You must not assume that the file actually exists even if installed version is passed as parameter.
|
static |
gets a supposed system path of package copyright file for certain binary version
You must not assume that the file actually exists even if installed version is passed as parameter.
| string cupt::Cache::getPathOfExtendedStates | ( | ) | const |
| string cupt::Cache::getPathOfIndexList | ( | const IndexEntry & | entry | ) | const |
| string cupt::Cache::getPathOfReleaseList | ( | const IndexEntry & | entry | ) | const |
| shared_ptr< const SourcePackage > cupt::Cache::getSourcePackage | ( | const string & | packageName | ) | const |
gets SourcePackage by name
| packageName | name of the source package |
| bool cupt::Cache::isAutomaticallyInstalled | ( | const string & | packageName | ) | const |
is binary package automatically installed?
| packageName | name of the binary package |
true if yes, false if no
|
static |
|
static |
controls internal caching
If set to true, enables internal caching in methods getPin and getSatisfyingVersions. Defaults to false.
1.8.1.2