zypp::cache Namespace Reference


Classes

struct  Attribute
 Attribute klass and name definition. More...
class  CacheException
class  CacheRecordNotFoundException
 The record you supplied can't be found. More...
class  CacheFSCK
 Check for consistency of the cache. More...
class  CacheInitializer
class  CacheStore
 The cache store caches resolvable data. More...
class  CacheTypes
 Cache types is a class that reads the dynamic types from the cache, and keeps them on memory. More...
struct  ResolvableQuery
 The resolvable query class allows you to query for resolvable data and properties from the cache. More...

Predefined attributes.

See also:
Attribute


 SrcPackage
const AttributeattrMessageText ()
const AttributeattrPackageAuthors ()
const AttributeattrPackageBuildhost ()
const AttributeattrPackageChecksumType ()
const AttributeattrPackageDistribution ()
const AttributeattrPackageGroup ()
const AttributeattrPackagePackager ()
const AttributeattrPackageKeywords ()
const AttributeattrPackageLicense ()
const AttributeattrPackageOperatingSystem ()
const AttributeattrPackagePostin ()
const AttributeattrPackagePostun ()
const AttributeattrPackagePrein ()
const AttributeattrPackagePreun ()
const AttributeattrPackageUrl ()
const AttributeattrPackageSourcePkgName ()
const AttributeattrPackageSourcePkgEdition ()
 defineOnMediaLocationAttr (attrPackageLocation,"Package","location") inline const Attribute &attrPatchAffectsPkgManager()
const AttributeattrPatchCategory ()
const AttributeattrPatchId ()
const AttributeattrPatchRebootNeeded ()
const AttributeattrPatchTimestamp ()
const AttributeattrPatternCategory ()
const AttributeattrPatternIcon ()
const AttributeattrPatternIsDefault ()
const AttributeattrPatternOrder ()
const AttributeattrPatternUserVisible ()
const AttributeattrPatternUiIncludes ()
const AttributeattrPatternUiExtends ()
const AttributeattrProductDistributionEdition ()
const AttributeattrProductDistributionName ()
const AttributeattrProductExtraUrls ()
const AttributeattrProductFlags ()
const AttributeattrProductLongName ()
const AttributeattrProductOptionalUrls ()
const AttributeattrProductReleasenotesUrl ()
const AttributeattrProductShortName ()
const AttributeattrProductType ()
const AttributeattrProductUpdateUrls ()
const AttributeattrResObjectBuildTime ()
const AttributeattrResObjectDelnotify ()
const AttributeattrResObjectDescription ()
const AttributeattrResObjectInsnotify ()
const AttributeattrResObjectInstallOnly ()
const AttributeattrResObjectInstalledSize ()
const AttributeattrResObjectLicenseToConfirm ()
const AttributeattrResObjectSummary ()
const AttributeattrResObjectVendor ()
const AttributeattrScriptDoScript ()
 defineOnMediaLocationAttr (attrScriptDoScriptLocation,"Script","doScriptLocation") inline const Attribute &attrScriptUndoScript()
 defineOnMediaLocationAttr (attrScriptUndoScriptLocation,"Script","undoScriptLocation") defineOnMediaLocationAttr(attrSrcPackageLocation

Typedefs

typedef shared_ptr
< sqlite3_command
sqlite3_command_ptr
typedef function
< bool(const
data::RecordId &,
data::ResObject_Ptr)> 
ProcessResolvable
 Callback definition first parameter is the resolvable id.

Functions

std::ostream & operator<< (std::ostream &str, const Attribute &obj)
std::ostream & operator<< (std::ostream &str, const CacheFSCK &obj)
std::ostream & operator<< (std::ostream &str, const CacheTypes &obj)
int tribool_to_int (boost::tribool b)
boost::tribool int_to_tribool (int i)
std::string checksum_to_string (const CheckSum &checksum)
CheckSum string_to_checksum (const std::string &checksum)

Variables

const int MATCH_EXACT = 0x00
const int MATCH_LEADING = 0x01
const int MATCH_TRAILING = 0x02
const int MATCH_SUBSTRING = (MATCH_LEADING|MATCH_TRAILING)
const int MATCH_REGEXP = 0x04
const int MATCH_NAME = 0x08
const int MATCH_SUMMARY = 0x10
const int MATCH_DESCRIPTION = 0x20
const int MATCH_WILDCARDS = (MATCH_SUBSTRING|MATCH_REGEXP)
const int MATCH_FIELDS = (MATCH_NAME|MATCH_SUMMARY|MATCH_DESCRIPTION)


Typedef Documentation

typedef shared_ptr<sqlite3_command> zypp::cache::sqlite3_command_ptr

Definition at line 51 of file CacheStore.cc.

typedef function<bool( const data::RecordId &, data::ResObject_Ptr )> zypp::cache::ProcessResolvable

Callback definition first parameter is the resolvable id.

second parameter is a data::ResObjectData object with the resource

Definition at line 63 of file ResolvableQuery.h.


Function Documentation

std::ostream& zypp::cache::operator<< ( std::ostream &  str,
const Attribute &  obj 
) [related]

Definition at line 31 of file Attribute.cc.

References zypp::cache::Attribute::klass, and zypp::cache::Attribute::name.

const Attribute& zypp::cache::attrMessageText (  )  [inline]

Definition at line 45 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumeMessage(), and zypp::repo::cached::MessageImpl::text().

const Attribute& zypp::cache::attrPackageAuthors (  )  [inline]

Definition at line 47 of file CacheAttributes.h.

References zypp::cache::Attribute::SHARED.

Referenced by zypp::repo::cached::PackageImpl::authors().

const Attribute& zypp::cache::attrPackageBuildhost (  )  [inline]

Definition at line 48 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::buildhost().

const Attribute& zypp::cache::attrPackageChecksumType (  )  [inline]

Definition at line 49 of file CacheAttributes.h.

const Attribute& zypp::cache::attrPackageDistribution (  )  [inline]

Definition at line 50 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::distribution().

const Attribute& zypp::cache::attrPackageGroup (  )  [inline]

Definition at line 51 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::group().

const Attribute& zypp::cache::attrPackagePackager (  )  [inline]

Definition at line 52 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::packager().

const Attribute& zypp::cache::attrPackageKeywords (  )  [inline]

Definition at line 53 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::keywords().

const Attribute& zypp::cache::attrPackageLicense (  )  [inline]

Definition at line 54 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::license().

const Attribute& zypp::cache::attrPackageOperatingSystem (  )  [inline]

Definition at line 55 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::os().

const Attribute& zypp::cache::attrPackagePostin (  )  [inline]

Definition at line 56 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::postin().

const Attribute& zypp::cache::attrPackagePostun (  )  [inline]

Definition at line 57 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::postun().

const Attribute& zypp::cache::attrPackagePrein (  )  [inline]

Definition at line 58 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::prein().

const Attribute& zypp::cache::attrPackagePreun (  )  [inline]

Definition at line 59 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::preun().

const Attribute& zypp::cache::attrPackageUrl (  )  [inline]

Definition at line 60 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::url().

const Attribute& zypp::cache::attrPackageSourcePkgName (  )  [inline]

Definition at line 61 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::sourcePkgName().

const Attribute& zypp::cache::attrPackageSourcePkgEdition (  )  [inline]

Definition at line 62 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PackageImpl::sourcePkgEdition().

zypp::cache::defineOnMediaLocationAttr ( attrPackageLocation  ,
"Package"  ,
"location"   
) const

Definition at line 64 of file CacheAttributes.h.

const Attribute& zypp::cache::attrPatchCategory (  )  [inline]

Definition at line 67 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PatchImpl::category(), and zypp::cache::CacheStore::consumePatch().

const Attribute& zypp::cache::attrPatchId (  )  [inline]

Definition at line 68 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumePatch(), and zypp::repo::cached::PatchImpl::id().

const Attribute& zypp::cache::attrPatchRebootNeeded (  )  [inline]

Definition at line 69 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumePatch(), and zypp::repo::cached::PatchImpl::reboot_needed().

const Attribute& zypp::cache::attrPatchTimestamp (  )  [inline]

Definition at line 70 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumePatch(), and zypp::repo::cached::PatchImpl::timestamp().

const Attribute& zypp::cache::attrPatternCategory (  )  [inline]

Definition at line 72 of file CacheAttributes.h.

Referenced by zypp::repo::cached::PatternImpl::category(), and zypp::cache::CacheStore::consumePattern().

const Attribute& zypp::cache::attrPatternIcon (  )  [inline]

Definition at line 73 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumePattern(), and zypp::repo::cached::PatternImpl::icon().

const Attribute& zypp::cache::attrPatternIsDefault (  )  [inline]

Definition at line 74 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumePattern(), and zypp::repo::cached::PatternImpl::isDefault().

const Attribute& zypp::cache::attrPatternOrder (  )  [inline]

Definition at line 75 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumePattern(), and zypp::repo::cached::PatternImpl::order().

const Attribute& zypp::cache::attrPatternUserVisible (  )  [inline]

Definition at line 76 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumePattern(), and zypp::repo::cached::PatternImpl::userVisible().

const Attribute& zypp::cache::attrPatternUiIncludes (  )  [inline]

Definition at line 77 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumePattern(), and zypp::repo::cached::PatternImpl::includes().

const Attribute& zypp::cache::attrPatternUiExtends (  )  [inline]

Definition at line 78 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumePattern(), and zypp::repo::cached::PatternImpl::extends().

const Attribute& zypp::cache::attrProductDistributionEdition (  )  [inline]

Definition at line 80 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumeProduct(), and zypp::repo::cached::ProductImpl::distributionEdition().

const Attribute& zypp::cache::attrProductDistributionName (  )  [inline]

Definition at line 81 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumeProduct(), and zypp::repo::cached::ProductImpl::distributionName().

const Attribute& zypp::cache::attrProductExtraUrls (  )  [inline]

Definition at line 82 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumeProduct(), and zypp::repo::cached::ProductImpl::extraUrls().

const Attribute& zypp::cache::attrProductFlags (  )  [inline]

Definition at line 83 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumeProduct(), and zypp::repo::cached::ProductImpl::flags().

const Attribute& zypp::cache::attrProductLongName (  )  [inline]

Definition at line 84 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumeProduct().

const Attribute& zypp::cache::attrProductOptionalUrls (  )  [inline]

Definition at line 85 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumeProduct(), and zypp::repo::cached::ProductImpl::optionalUrls().

const Attribute& zypp::cache::attrProductReleasenotesUrl (  )  [inline]

Definition at line 86 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumeProduct(), and zypp::repo::cached::ProductImpl::releaseNotesUrl().

const Attribute& zypp::cache::attrProductShortName (  )  [inline]

Definition at line 87 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumeProduct(), and zypp::repo::cached::ProductImpl::shortName().

const Attribute& zypp::cache::attrProductType (  )  [inline]

Definition at line 88 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumeProduct(), and zypp::repo::cached::ProductImpl::type().

const Attribute& zypp::cache::attrProductUpdateUrls (  )  [inline]

Definition at line 89 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumeProduct(), and zypp::repo::cached::ProductImpl::updateUrls().

const Attribute& zypp::cache::attrResObjectBuildTime (  )  [inline]

Definition at line 91 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::appendResObjectAttributes(), zypp::repo::cached::SrcPackageImpl::buildtime(), zypp::repo::cached::ScriptImpl::buildtime(), zypp::repo::cached::ProductImpl::buildtime(), zypp::repo::cached::PatternImpl::buildtime(), zypp::repo::cached::PatchImpl::buildtime(), zypp::repo::cached::PackageImpl::buildtime(), zypp::repo::cached::MessageImpl::buildtime(), and zypp::repo::cached::AtomImpl::buildtime().

const Attribute& zypp::cache::attrResObjectDelnotify (  )  [inline]

Definition at line 92 of file CacheAttributes.h.

References zypp::cache::Attribute::SHARED.

Referenced by zypp::cache::CacheStore::appendResObjectAttributes(), zypp::repo::cached::SrcPackageImpl::delnotify(), zypp::repo::cached::ScriptImpl::delnotify(), zypp::repo::cached::ProductImpl::delnotify(), zypp::repo::cached::PatternImpl::delnotify(), zypp::repo::cached::PatchImpl::delnotify(), zypp::repo::cached::PackageImpl::delnotify(), zypp::repo::cached::MessageImpl::delnotify(), zypp::repo::cached::AtomImpl::delnotify(), and zypp::cache::CacheStore::updatePackageLang().

const Attribute& zypp::cache::attrResObjectDescription (  )  [inline]

Definition at line 93 of file CacheAttributes.h.

References zypp::cache::Attribute::SHARED.

Referenced by zypp::cache::CacheStore::appendResObjectAttributes(), zypp::repo::cached::SrcPackageImpl::description(), zypp::repo::cached::ScriptImpl::description(), zypp::repo::cached::ProductImpl::description(), zypp::repo::cached::PatternImpl::description(), zypp::repo::cached::PatchImpl::description(), zypp::repo::cached::PackageImpl::description(), zypp::repo::cached::MessageImpl::description(), zypp::repo::cached::AtomImpl::description(), and zypp::cache::CacheStore::updatePackageLang().

const Attribute& zypp::cache::attrResObjectInsnotify (  )  [inline]

Definition at line 94 of file CacheAttributes.h.

References zypp::cache::Attribute::SHARED.

Referenced by zypp::cache::CacheStore::appendResObjectAttributes(), zypp::repo::cached::SrcPackageImpl::insnotify(), zypp::repo::cached::ScriptImpl::insnotify(), zypp::repo::cached::ProductImpl::insnotify(), zypp::repo::cached::PatternImpl::insnotify(), zypp::repo::cached::PatchImpl::insnotify(), zypp::repo::cached::PackageImpl::insnotify(), zypp::repo::cached::MessageImpl::insnotify(), zypp::repo::cached::AtomImpl::insnotify(), and zypp::cache::CacheStore::updatePackageLang().

const Attribute& zypp::cache::attrResObjectInstallOnly (  )  [inline]

Definition at line 95 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::appendResObjectAttributes(), zypp::repo::cached::SrcPackageImpl::installOnly(), zypp::repo::cached::ScriptImpl::installOnly(), zypp::repo::cached::ProductImpl::installOnly(), zypp::repo::cached::PatternImpl::installOnly(), zypp::repo::cached::PatchImpl::installOnly(), zypp::repo::cached::PackageImpl::installOnly(), zypp::repo::cached::MessageImpl::installOnly(), and zypp::repo::cached::AtomImpl::installOnly().

const Attribute& zypp::cache::attrResObjectInstalledSize (  )  [inline]

Definition at line 96 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::appendResObjectAttributes(), zypp::repo::cached::SrcPackageImpl::size(), zypp::repo::cached::ScriptImpl::size(), zypp::repo::cached::ProductImpl::size(), zypp::repo::cached::PatternImpl::size(), zypp::repo::cached::PatchImpl::size(), zypp::repo::cached::PackageImpl::size(), zypp::repo::cached::MessageImpl::size(), and zypp::repo::cached::AtomImpl::size().

const Attribute& zypp::cache::attrResObjectLicenseToConfirm (  )  [inline]

Definition at line 97 of file CacheAttributes.h.

References zypp::cache::Attribute::SHARED.

Referenced by zypp::cache::CacheStore::appendResObjectAttributes(), zypp::repo::cached::SrcPackageImpl::licenseToConfirm(), zypp::repo::cached::ScriptImpl::licenseToConfirm(), zypp::repo::cached::ProductImpl::licenseToConfirm(), zypp::repo::cached::PatternImpl::licenseToConfirm(), zypp::repo::cached::PatchImpl::licenseToConfirm(), zypp::repo::cached::PackageImpl::licenseToConfirm(), zypp::repo::cached::MessageImpl::licenseToConfirm(), zypp::repo::cached::AtomImpl::licenseToConfirm(), and zypp::cache::CacheStore::updatePackageLang().

const Attribute& zypp::cache::attrResObjectSummary (  )  [inline]

Definition at line 98 of file CacheAttributes.h.

References zypp::cache::Attribute::SHARED.

Referenced by zypp::cache::CacheStore::appendResObjectAttributes(), zypp::repo::cached::SrcPackageImpl::summary(), zypp::repo::cached::ScriptImpl::summary(), zypp::repo::cached::ProductImpl::summary(), zypp::repo::cached::PatternImpl::summary(), zypp::repo::cached::PatchImpl::summary(), zypp::repo::cached::PackageImpl::summary(), zypp::repo::cached::MessageImpl::summary(), zypp::repo::cached::AtomImpl::summary(), and zypp::cache::CacheStore::updatePackageLang().

const Attribute& zypp::cache::attrResObjectVendor (  )  [inline]

Definition at line 99 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::appendResObjectAttributes(), zypp::repo::cached::SrcPackageImpl::vendor(), zypp::repo::cached::ScriptImpl::vendor(), zypp::repo::cached::ProductImpl::vendor(), zypp::repo::cached::PatternImpl::vendor(), zypp::repo::cached::PatchImpl::vendor(), zypp::repo::cached::PackageImpl::vendor(), zypp::repo::cached::MessageImpl::vendor(), and zypp::repo::cached::AtomImpl::vendor().

const Attribute& zypp::cache::attrScriptDoScript (  )  [inline]

Definition at line 101 of file CacheAttributes.h.

Referenced by zypp::cache::CacheStore::consumeScript(), and zypp::repo::cached::ScriptImpl::doScriptInlined().

zypp::cache::defineOnMediaLocationAttr ( attrScriptDoScriptLocation  ,
"Script"  ,
"doScriptLocation"   
) const

Definition at line 103 of file CacheAttributes.h.

zypp::cache::defineOnMediaLocationAttr ( attrScriptUndoScriptLocation  ,
"Script"  ,
"undoScriptLocation"   
)

std::ostream& zypp::cache::operator<< ( std::ostream &  str,
const CacheFSCK obj 
)

Definition at line 115 of file CacheFSCK.cc.

References zypp::cache::CacheFSCK::_pimpl.

std::ostream& zypp::cache::operator<< ( std::ostream &  str,
const CacheTypes &  obj 
)

Definition at line 193 of file CacheTypes.cc.

int zypp::cache::tribool_to_int ( boost::tribool  b  ) 

Definition at line 26 of file Utils.cc.

boost::tribool zypp::cache::int_to_tribool ( int  i  ) 

Definition at line 36 of file Utils.cc.

std::string zypp::cache::checksum_to_string ( const CheckSum &  checksum  ) 

Definition at line 46 of file Utils.cc.

References zypp::CheckSum::checksum(), and zypp::CheckSum::type().

CheckSum zypp::cache::string_to_checksum ( const std::string &  checksum  ) 

Definition at line 51 of file Utils.cc.

References zypp::str::split().


Variable Documentation

zypp::cache::SrcPackage

Definition at line 109 of file CacheAttributes.h.

const int zypp::cache::MATCH_EXACT = 0x00

Definition at line 44 of file ResolvableQuery.h.

const int zypp::cache::MATCH_LEADING = 0x01

Definition at line 45 of file ResolvableQuery.h.

Referenced by zypp::cache::ResolvableQuery::Impl::iterateResolvablesByKindsAndStringsAndRepos().

const int zypp::cache::MATCH_TRAILING = 0x02

Definition at line 46 of file ResolvableQuery.h.

Referenced by zypp::cache::ResolvableQuery::Impl::iterateResolvablesByKindsAndStringsAndRepos().

const int zypp::cache::MATCH_SUBSTRING = (MATCH_LEADING|MATCH_TRAILING)

Definition at line 47 of file ResolvableQuery.h.

const int zypp::cache::MATCH_REGEXP = 0x04

Definition at line 48 of file ResolvableQuery.h.

const int zypp::cache::MATCH_NAME = 0x08

Definition at line 49 of file ResolvableQuery.h.

const int zypp::cache::MATCH_SUMMARY = 0x10

Definition at line 50 of file ResolvableQuery.h.

const int zypp::cache::MATCH_DESCRIPTION = 0x20

Definition at line 51 of file ResolvableQuery.h.

const int zypp::cache::MATCH_WILDCARDS = (MATCH_SUBSTRING|MATCH_REGEXP)

Definition at line 54 of file ResolvableQuery.h.

Referenced by zypp::cache::ResolvableQuery::Impl::iterateResolvablesByKindsAndStringsAndRepos().

const int zypp::cache::MATCH_FIELDS = (MATCH_NAME|MATCH_SUMMARY|MATCH_DESCRIPTION)

Definition at line 55 of file ResolvableQuery.h.


Generated on Tue Sep 25 19:23:17 2007 for libzypp by  doxygen 1.5.3